Beginners - March 2011 (Page 50)

Program displaying wrong resullts
 
this program is supposed to take in sales figures in dollars, convert them into a salary for the salesmen, and then display the number of salaries that fall wit...
[no replies]
by Sibuns
Strings..... C++
 
Hey i just start to play with some strings and i have a little trouble to write something.... I want to write a that allows to input 10 lines of text... I d...
[11 replies] Last: Ok i dont know whats wrong with this code... I have a function that us... (by Sibuns)
Constructors
 
What are Constructors, Destructors, and member functions
[2 replies] Last: Constructors, Destructors, and member functions I can't tell you ... (by king214)
by pooshi
Question about enums
 
Hello. I have a question about enum and was looking for some help. enum cardSuit {SPADE, CLUB, HEART, DIAMOND}; void setSuit( cardSuit ) int ma...
[4 replies] Last: I need to fill a one character array with the suit, which is the enum ... (by pooshi)
First multiple function program not working.
 
I have been assigned to write a program that has 5 functions ( main, menu, exponetial, factorial, and pthagorean therom) and does the functions. The code i have...
[2 replies] Last: Lotsa errors... :D Line 0: Please use code tags in the future. :) ... (by Albatross)
Problems understanding inheritance.
 
I'm having trouble understanding some concepts of inheritance. I'm doing an assignment where I have to design a basic bank system, and it's asking me to make a ...
[2 replies] Last: I think I was confused because of the wording of the problem. It's ask... (by packetpirate)
Structs
 
What is a struct? What is the difference between and arry and an array of structs? Examples would Help Thanks
[1 reply] : http://cplusplus.com/doc/tutorial/structures/ http://cplusplus.com/do... (by Zhuge)
by Sieves
RNG in classes
 
I am making a class to define a combination lock. The default constructor is supposed to set the 3 numbers in the combo to a random number between 1 and 39... n...
[8 replies] Last: u32 and u8 are typedefs. unsigned 32-bit and unsigned 8-bit respect... (by Disch)
Meaning of argc, argv
 
What is the meaning of that and this int main(int argc,char**argv) Thanks
[2 replies] Last: Yes thanks! (by ccund001)
Feel lost, hard to progress. (1,2)
 
So i started C++ about a month ago and want to start getting into developing games. I've read a few tutorials including the one on this site and have been read...
[28 replies] Last: You could just typedef the sf::String to something better =) (by ultifinitus)
Stack simple question
 
Are stacks deleted when they are removed from the top? I'm just wondering
[1 reply] : oh its ok, I just found out. The reason is in this code, apparently i... (by Blessman11)
Windows Forms with define method
 
Hi.I want to define Windows Form with define method. #ifndef ARAYUZ_H #define ARAYUZ_H #include <windows.h> #define FONKSIYON LRESULT CAL...
[5 replies] Last: Must be define WinAPI in memory?Such as exam: #define FONKSIYON L... (by Helegurbann)
Mysterious blank lines from file
 
Hi everyone, another newb with a question. I'm making a function that gets a random line from a file (it's for a hangman type game). I've got it working except ...
[3 replies] Last: (rand() % 10) is evaluated every time through the loop. (by PanGalactic)
c programming question
 
Write a C- programm using (structures) that stores the details of students in a school. create a structure called Student with the following structure elemen...
[6 replies] Last: Wow. I remember doing this exact assignment a couple of years ago. OP,... (by joh024)
by tonnot
My 'template' does not compile
 
I have .h file template <class T> std::string formato(T number, string format); template <class V> QString Qformato(V number, string format); and ...
[2 replies] Last: What I'm doing bad? Maybe I cannot have templates with h and cpp?? ... (by moorecm)
Having trouble. I keep getting error C2065
 
I'm doing a program for class, trying to make a conversion for feet, inches, miles, and yards to meters, but I keep getting the error C2065 message. This is the...
[4 replies] Last: Thank you. You helped a lot! (by Archangel498)
Sighold & sigrelse
 
XXX DELETE XXX
[no replies]
Total noob, (function quirks) - what am I doing wrong here?
 
CHANGE: my original question was about increasing int lvl by 1 for every 10 increases of int exp . the integers lvl and exp have been temporarily r...
[6 replies] Last: removed; code no longer even remotely the same (by Rofflecopters)
functions ,formulas !! :/
 
hi, currently I study Introduction to computer science , the lecturer is letting us to solve the programming problems by ourselves with- out teaching ,an...
[3 replies] Last: thnx :> (by Thuraya)
by Smitty
sh: PAUSE: command not found error message, not understanding it.
 
I keep getting an error message when running my code at the end. I think it has something to do with line 26, but I'm not sure how to correct it. the error is ...
[3 replies] Last: Try system("read"); ... Sure, there are better ways than this.... (by moorecm)
March 2011 Pages: 1... 4849505152
  Archived months: [feb2011] [apr2011]

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