Sorry if this is a stupid question, but I was wondering.
Is it possible to print something from a program. For example, say I would like to display "Lala" on the screen and then print it out. Is it...
Type: Posts; User: C++programming
Sorry if this is a stupid question, but I was wondering.
Is it possible to print something from a program. For example, say I would like to display "Lala" on the screen and then print it out. Is it...
On the last else statement you forgot to close it so it won't work unless you do this :
....
else
{
cout<<"You are really old"; //executed if no other statement is executed
[b]}[b]...
Actually, <conio.h> is the header file, not <concio.h>
And, as for cin.get(), it goes right before the return 0;
The reason for using two is because it waits for enter to be pressed, but enter...
I had this problem A LOT before I figured out what was wrong. First, cin,get(); is not correct. It should be cin.get();
Next, what is happening is cin.get(); waits for someone to press [ENTER],...
Thanks so much!
I tried to make a very simple calculator. It works as such :
Open the file...
Hit [ENTER]....
Type in one (1) number
[Enter]
Type in addition sign : +
[enter]
type in another number
[enter]
I don't know what you should do about that problem. I generally use cin.get(); to wait for a keypress. Perhaps your getch() is the problem? I don't know about that because I am also new. However, and...
Hi Everyone! Any help on this one would be creatly appreciated :
I've read the tutorial on the site and checked the FAQ but I still don't understand the purpose of pointers.
Sorry if this is...