![]() |
Press Enter to Add One
I am new to c++ programing and am want to make a program in which if you press enter a number will increase by one. I can make the doesprogram loop and recognize 'enter', but when I try to put them together it doesn't work. Please help.
|
Re: Press Enter to Add One
Try something like this:
Code:
//make sure you #include <iostream> |
Re: Press Enter to Add One
Quote:
|
Re: Press Enter to Add One
Quote:
|
Re: Press Enter to Add One
You can write this with a for loop too, which has variable incrementing built in:
Code:
#include <iostream> //has cout |
Re: Press Enter to Add One
Thanks that was very helpful.
|
| All times are GMT -5. The time now is 13:31. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi