Beginners - July 2010 (Page 2)

class with non member functions
 
In addition to the main program and the class, I am supposed to write three nonmember functions. 1....
[2 replies] Last: Actually, since you only ever need to check distances and whether two ... (by Zhuge)
constructing
 
How do you create a constructor that sets the pay rate based upon a parameter?
[1 reply] : If you are asking homework solution, at least don't copy-paste the tex... (by Bazzy)
Random unique numbers
 
Hello everyone, How can I generate a unique random number? With the function rand() % tam th...
[6 replies] Last: You'll also have to make sure to add the number to your list of gen... (by Duthomhas)
Extra Credit Exercise (Simple Functions)
 
Hi, I'm a new to the forum, I'm currently studying C++ and I'm really enjoying it (as difficult as i...
[13 replies] Last: [quote=ne555]I put the throw statement because, if you're expecting to... (by m4ster r0shi)
by takure
having problems with atoi and displaying output
 
Hello everyone, I'm in a pinch right now as I should send this as an homework tomorrow.I couldn't...
[3 replies] Last: If you want to convert a string to integer, rather than use atoi() you... (by Galik)
by EdBoon
allocating new memory in switch statement
 
I am getting an error with the following code: void loadLevel(int level) { enum {worldmap,fir...
[2 replies] Last: thank you very much! (by EdBoon)
advanced C++ book
 
Hello again, I'm just about done with a 2 semester beginner C++ book and would like to buy the next ...
[2 replies] Last: Additionally, consider any of the C++ In-Depth Series books. (by moorecm)
Remove() Wont work for some reason.
 
Well, i tryed to delete a file via C++, But it Just wont delete it.. I tryed these 2 codes System: ...
[2 replies] Last: Indeed.. Newbie error i guess i didnt add "myfile.close" PS: Yes i... (by DeadSix17)
grade and final score
 
somebody help ... my grade and final score is correct but i want the grade come after the final scor...
[3 replies] Last: change void grade() { double score; to this: void grade(do... (by Skillless)
Program to convert times from 24hr to 12hr clock
 
My latest attempt at a programming project from chapter 4 of Absolute C++. Could you guys let me ...
[1 reply] : The difference is that global variables are frowned upon and reference... (by jsmith)
Struggling with pointers
 
Hi all, I'm using a piece of software called Opnet to implement a protocol and I am needing to do...
[1 reply] : All I want to do is to be able to print the value (the hex value) rat... (by Skillless)
parallel arrays
 
this program is intended to show sales for 4 quarters. am i on the right track? //Include Files ...
[16 replies] Last: the first bug is that we have to initialize totalDivSales to zero, eit... (by abdallahijazi)
Audio Recording Application
 
Hi, i am new in here. I would like to build audio recording application. Where should i start? h...
[3 replies] Last: Oh i see So we have to start the very basic one... Btw any link ma... (by ronaldpassion)
by takure
problem with atoi
 
hello everyone, I've been trying to solve this problem but there was no use.It gives this error: "'...
[3 replies] Last: Yes. Use an std::stringstream like so: std::stringstream(xstr)>>x... (by firedraco)
percentage mark
 
somebody help.the final score got a bit problem.i input exam-86,quiz-84,assg-70,lab-88,test-80,the f...
[6 replies] Last: a pierce o wrote: int get_Score(double,double,double,double... (by ne555)
Assistance needed T_T
 
EMERGENCY!Well guys, I'm faily new to programming and I'm having a problem with one of my codes. Its...
[8 replies] Last: Hey thanks guys for all your help. The calculation works but the numbe... (by DarkShadowEX)
Array of pointers not changing out of scope?
 
I have a PiggyBank class that stores "Coins" with the functions DropIn and GrabOut. The functions wi...
[7 replies] Last: Also you're making a little mistake here. temp = new Coin* [size+1]... (by ne555)
by Colby
Calculating Displacement vector, velocity vector, and frames
 
I'm not even sure where to start, i had a horrible professor my last programming class, and i am str...
[2 replies] Last: i have to utilize the void function in the code somehow. (by Colby)
shared memory in c
 
Hi everybody. I have a question of something that I have been trying lately in the C language. I w...
[3 replies] Last: Huh? But... When i increase that value to sizeof (Mystruct) , the co... (by helios)
Function overloading program not working
 
OK, so I'm learning about overloading funtions to a very basic level. My understanding of it is that...
[3 replies] Last: yeah, I just noticed that I set the input asked for to int. Silly old ... (by jaeger138)
July 2010 Pages: 1234... 31
  Archived months: [jun2010] [aug2010]

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