Beginners - May 2010 (Page 18)

Showing highest and lowest (Homework)
 
Well they want me to keep asking for numbers, once the user puts in a negative number the program is supposed to stop and inform the highest and the lowest numb...
[9 replies] Last: Sorry, that was my bad. I forgot that it was a part of conio. Add th... (by elvenspike)
retaining values
 
hey, so is there anyway to keep values of a program when the program closes without exporting the data to another file like a text file.
[3 replies] Last: alright thanks i will look into it. (by kyle11778)
Header Prefixes and Linking
 
I'm creating a set of classes to handle polygons and other geometric objects. Original plan was to have three classes: PolygonVertex, PolygonEdge, and Polygon....
[3 replies] Last: Yup, it was the naming conflict. Didn't actually think of checking fo... (by Joseph T)
by Morph
function const
 
Why do we use const with functions . int getA() const {} int getA() {} whats the difference
[1 reply] : http://www.parashift.com/c++-faq-lite/const-correctness.html#faq-18.10 (by blackcoder41)
by nano90
Hello, I have 1 error but I don't know what is it??
 
Write ONE C++ program that displays a menu with 4 choices and executes those choices for the end-user. Your menu should include an informative header/descript...
[4 replies] Last: @Albatross Sorry man, I am new to c++ don't have very good knowledge ... (by rajroshi)
by nerdie
WORD COUNT
 
I have been trying to write a code that counts words and sentences, yet I do not think I have the right logic. I need to write code only using beginner principl...
[4 replies] Last: Although he does include one more word at the start of his loop. -A... (by Albatross)
A problem with error checking
 
Hello there, I'm trying to write an interactive story game that outputs a paragraph to the console window, then asks you to make a choice what the character sho...
[6 replies] Last: Cheers for all your help everyone, I found the solution in the end. C... (by jamesbouckley)
First successful project
 
Hello, I am new to C++ and I have made a calculator that adds, subtracts, divides and multiplies. Would you please recommend some changes i could make to the co...
[16 replies] Last: Additionally, the global variables are never used outside of the funct... (by moorecm)
by Hanno
Function return safe or not ?
 
char* KandM(uint32 geld) { char *buf = new char ; if (geld > 999999) { // Miljoenen sprintf(buf, "%.1fm", geld / 1000000); } else if ...
[5 replies] Last: It has to be handled. I gave you an example above. Good luck! (by Duthomhas)
2D array
 
Hi . How Write program accept 4 input from user for ID and Name and Store in 2D array . and list Array elements in exact manner as in the sample out. for ex...
[1 reply] : You don't need a 2D array to do this. What you need is to define a str... (by m4ster r0shi)
by Morph
How to compile with console in windows
 
How can i compile my cpp with windows console. I tried g++ command but it doesn't worked . I have mingw installed. My environmental variables are correct
[4 replies] Last: Wow i don't know why my "bin" folder was renamed "binn" thanks anyway (by Morph)
by murdok
Double linked list
 
Hello, I am a nube in C++ and I need your help. I want to make a double linked list wich will be a street to conect city A(Begining of list) and city B(End o...
[1 reply] : I take it each car node has a speed field. Do you want the list sorted... (by closed account Lv0f92yv)
incrementing values with array parameters
 
That's the best subject line I can think of to explain this problem. I just finished the first semester of C++, but unfortunately didn't get that far into array...
[4 replies] Last: What's up? That was great. Especially that low-level explanation. You ... (by mucygni)
a problem about static_cast
 
my code is bellow: class CBase { virtual void dummy() {} }; class CDerived: public CBase { int a; public : void hello() { cout << "hello" <<...
[7 replies] Last: Before I explain this I want to be sure that you READ MY NOTES AT THE... (by Disch)
The remove() behavior of container list on MAC
 
I am not sure whether i have posted it in wrong category. http://www.cplusplus.com/forum/unices/23764/
[no replies]
Local constants--when to use?
 
So I know that, in general, constants should be declared globally. But I just had an example(password-guessing game) program where the password was declared as ...
[4 replies] Last: On these forums, most of the people have been told that globals are e... (by Disch)
Oh no its a bug
 
So this program is to prompt the user for their income and then tell the person how much tax they should pay on their income. It passes all tests except when I ...
[2 replies] Last: haha been staring at the screen too long man that that totally slipped... (by barkley)
c++ needs some assistance with homework (1,2)
 
so i have this question to do and i don't no where to start is someone could help me!!! Write a complete C++ program that prompts the user for the x and y co...
[28 replies] Last: ya im good (by jade777)
by lixo1
Using new several times without delete
 
Dear all, I would like to know if I'm doing something wrong in C++. I have a class with a pointer and a member function that allocates the pointer using the...
[5 replies] Last: They're called access specifiers and are extremely important when usin... (by Archaic)
by ARWA
2d array which each element is fraction
 
hi every one; i saw this question and im trying to solve it.\ baseicaly i have to matrix's which each element is afraction so i must declare a class that has...
[no replies]
May 2010 Pages: 1... 1617181920... 33
  Archived months: [apr2010] [jun2010]

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