oops...I hit enter too soon. I tried typing in a letter for the menu and it kept repeating its self over and over lol.
Type: Posts; User: shewolf
oops...I hit enter too soon. I tried typing in a letter for the menu and it kept repeating its self over and over lol.
Yes exit thats it! Thanks so much. It now runs smoothy. I will also try the continue false. Thanks,
Thank you. I want the program to terminate when the user hits 4
#include <stdlib.h>
#include <iostream>
#include <string>
#include <conio.h>
#include <windows.h>
using namespace std;
thanks for the tip~ ^_^ I think i remeber reading about a function that automaticly ends the program when called but I cant think of what its called?
NM, I did that. It working really well. Only qwhen i choose 4 to quit it keeps repeating the menu lol.
Ok, thanks that makes alot of sence. Another question. How would I declare x? As x = 4?
isnt thier suppose to be a period in getline?
thanks so much. I've added the while loop and removed the function menu. I do have a few tiny errors such as parse error before certin symbols. What exactly is a parse error?
#include...
Ok, well I got the menu set up and when the user enters a option it displays the string. Then I want the menu to reapear again so they may choose another option but i keep getting the press any key...
Try www.cplusplus.com. Lots of great tutorials there.
I did? ...LOL hehe.
I solved my problem. Yay.
However a new one has arised.
I output a long string and it trails off into the right of the screen and i cant read it. I tried useing endl; but to no...
Oh, NM I figured it out. I declared my functions as void and removed the return values therefore it doest not cause any errors! Wow, programming is so fun lol!
Thanks so much for your help, I was able to compile without any error. However when i choose the option it displays the string but imeadetly i get an error pop up of an illegal operation thne ends...
Hmm....
I tried return cout << "text"; but that gave me a bunch of errors. I'm so lost :(
I want the user to type in a command then display a string but i keep getting my default error messege.
#include <stdlib.h>
#include <iostream>
#include <string>
#include <conio.h>...