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.A function to determine if three points form a triangle. Th...
[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 the generated numbers are repeated together. Thank`s for 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 it is lol). I'm still getting to grips with understanding OPP...
[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 figure out what the problem is for a very very long time an...
[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,firstlevel}; switch (level) { case (worldmap): MapLoad...
[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 logical step. My book is "Program Development and Design Usi...
[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: Windows7 x64 Compiler: Microsoft Visual Studio 2008 : co...
[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 score.it sound easy but i changed every place also cant.the sequ...
[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 know what's right/wrong with my code? It runs fine, and achi...
[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 some programming (very much my weak point!). I have crea...
[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 #include <iostream> #include <iomanip> #include <conio.h>...
[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? http://www.presonus.com/media/images/productPhotos/capture_la...
[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: "'atoi' : cannot convert parameter 1 from 'std::string' to 'co...
[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 final score should give me 82.7,but my program give me 82 onl...
[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 basically an online pizza ordering system. I can get it to ...
[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 will store a pointer to the "Coins" in an growable array of po...
[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 struggling with the current one. here is what i need to do....
[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 want to use shared memory in a c program but it seems that th...
[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 multiple functions can be given the same identifier but a d...
[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.