Beginners - October 2012 (Page 33)

by Katma
AVL tree functions "SELECT" and "RANK"
 
Evening, all. I'm trying to design a program that takes an input file with commands and integers, and uses those to build and manipulate an AVL tree. For the mo...
[no replies]
MY isdigit is not working!
 
Hey guys, so for some reason my isdigit is not detecting the numbers in a text file. Even tho the output shows the numbers. This program is supposed to count th...
[15 replies] Last: it did not work, but it's ok. I am limited on time, so I have to turn ... (by chunkymonkey11)
uint32 variable: 16; ?
 
typedef struct { uint32 variable: 16; uint32 variable2: 8; }new_type_s Can someone please help me understand what the following means? How many bit is t...
[2 replies] Last: You pointed out that you will use 16 bits.:) (by vlad from moscow)
Need Help!!!! Instructor can't figure it out either!!!!
 
#include <iostream> #include <string> using namespace std; int main(void) { class employee{ public: char name ; long employee_id; float salar...
[5 replies] Last: It was a joke. The correct code shall look the following way #includ... (by vlad from moscow)
Numbers & Letters Algorithm
 
Hi, just wondering but how would I create a algorithm like this: int i, j, k, nums[ 50 ] ; for ( i = 1 ; i < 50 ; i++) nums[ i ] = i; f...
[1 reply] : A description would be really helpful (by ne555)
Need help with my program that envolves functions.
 
Hello everybody, This is my first program using functions. I believe I have an issue with returning, and sending values since my compute salary function give...
[1 reply] : Let consider function getHoursRate. Inside the function body you cal... (by vlad from moscow)
Do while program
 
I have a programming problem, I am running a program that corresponds with the digits on a telephone keypad. When I enter a valid char, it should give the resu...
[4 replies] Last: That got it, thank you VERY much!! Marking this problem as solved. (by Afarian)
by skarla
sound in c++
 
I am trying to make sound in c++ trhough SDL. My source is this: #include <SDL.h> #include <SDL_opengl.h> #include <SDL_mixer.h> SDL_Surface *screen...
[7 replies] Last: no problem just add me here in skype: hepic.hepic (by skarla)
Sequence comparing
 
I am writing a program that takes an array A and shuffles it and saves the shuffled elements into array B. This I have finished. Now I am writing a function tha...
[7 replies] Last: looping array A 4 times would return it to its original state. origina... (by alepxpl93)
Look over my program? What did I do wrong?
 
// preprocessor directives #include <iostream> #include <string> // string class library #include <iomanip> // setw(), fixed, showpoint, setprecision, le...
[1 reply] : What did you do wrong? First of all you didn't use the source code for... (by Fovv)
by ctyne
Problem getting correct score in simple Blackjack program
 
I'm having trouble spotting the error that is causing the score to be computed from the two random ints instead of being processed through the if statements I h...
[3 replies] Last: Another problem is that you keep declairing another "score" in every i... (by Lowest0ne)
by Brax
Bitwise operators
 
I'm trying to write a simple code (just for learning) to count the number of bit of unsigned int type and I am encountering some problems with Bitwise shift ope...
[4 replies] Last: Thank you all for your responses. @guestgulkan: cout << "5: " << si... (by Brax)
Please hlep
 
How to do this program? Write a C++ program using two for loops to produce the following pattern of asterisks. * ** *** **** ***** ****** *******...
[6 replies] Last: #include <iostream> using namespace std; int main() { int a; ... (by Fovv)
Calendar formula
 
I have the formula I need, however I get an error when I try to compile. int day, yr; day = ((((yr - 1) * 365) + floor((yr - 1) / 4) - floor((yr - 1) / ...
[6 replies] Last: There are several problems with your code. First since floor() returns... (by jlb)
by am0n
a syntax error?
 
Hello, I've wrote this code When I launch it, it displays everything. for example if I write = 5, it will display like this You got F You got D You got C ...
[11 replies] Last: Thanks, will keep that in mind. (by am0n)
PLEASE Help - Binary record deletion
 
Im a beginner with binary files. The thing is, i was trying to make a programme to create a binary record for instance a record of 10 rooms. now i wanted to mak...
[2 replies] Last: Yea thats exactly what i wanted to know. How do i clear the previous b... (by tshankar)
Return value malfunctioning in function
 
when I run the following code below, I get the right answer which is 5040. #include <iostream> using namespace std; int factorial(int x){ if (x==0...
[2 replies] Last: Thanks I now get it. but what if i want the if statement to return 2,... (by BridgesBenghazi)
Unsure how to go about this Str manipulation
 
What I am trying to do here is take a full name, eg. Mike W. Heintzman and allow the user to search for three letters within the name. Then I want to be able to...
[3 replies] Last: C++ is case sensitive. M and m are considered to be two different thin... (by Fovv)
Issues with function - please help
 
Hello everyone, Iam having a bit of an issue with a function and I was wondering if anyone would be able to help me. The function is meant to read in an entire...
[11 replies] Last: Ok, no worries. If you only need to store one thing, then use set. M... (by TheIdeasMan)
Reading only last line of file
 
I am reading in a .csv file saved from an excel document. When reading the file I have found that my program ONLY reads the last line of the file. The code is a...
[no replies]
October 2012 Pages: 1... 3132333435... 84
  Archived months: [sep2012] [nov2012]

This is an archived page. To post a new message, go to the current page.