No need to use system("PAUSE") all the time, I normally use that when I end a console program.
system("PAUSE");
return 0;
endl; is better to use, so something like cout << "My text here" << endl; or if you want input just use cin, the "Press any key to continue" is retarded.
Making a calculator makes you understand operators, if & else and variables better. remember:Always have a goal for making something, just following a tutorial with no goal wont get you far.
But shouldn´t you type using namespace std; just after loading libraries? Because all elements of the standard c++ library are declared in namespace std?
use java eclipse
stormtrooper302 2 weeks ago
Why are you using system("pause") and not std::cin.getline() ?
ebaumsdidit 3 months ago
holy shit! Watch out activision!
runslikeclockwork 3 months ago 7
Why have you named this video "C++ Game" if it is NOT a game?!
VmanMaslov1995 4 months ago 4
you should just have do command prompt
xcalibur0645 8 months ago
Dude system("pause") uses heavy processing resources for obvious reasons.
Do
cin.ignore();
cin.get();
MrVirtualCoder 1 year ago
@MrVirtualCoder Ah great idea thanks m8
TheGnomelandSecurity 1 year ago
if this develops into a more advanced kind of game, my congratz! Of course, you don't get them yet because it's text based :P
zephiro309 1 year ago
No need to use system("PAUSE") all the time, I normally use that when I end a console program.
system("PAUSE");
return 0;
endl; is better to use, so something like cout << "My text here" << endl; or if you want input just use cin, the "Press any key to continue" is retarded.
Greenadee 1 year ago
1 advice... It looks lame when it's like:
Hi it's me click to continue...
just type in endl;
Hi it's me
Click to continue...
Exbigg 1 year ago
Good for a beginner program!!
Check out my game too!
Greets
Daniel
TheDaniel0108 2 years ago
Y did you video tape it, you could have screencasted it :P
MrSneakernet 2 years ago
Keep up the err... "GAME" programming XD
iChris2D 2 years ago 8
wouldn't call this a game :/
DarkRage4 2 years ago
instead of system("PAUSE") use sleep(amount of milliseconds), it's timed and yout don't have to press keys over and over
xXShadowAsasNXx 2 years ago
is it really millisecond based?
ForSaleOfficial 2 years ago
Ya. There is a good reason behind it though. Seconds are too long in the computing world.
LindB377 2 years ago
Another good thing to practice:
Try make a simple guessing game, or a calculator.
Making a calculator makes you understand operators, if & else and variables better. remember:Always have a goal for making something, just following a tutorial with no goal wont get you far.
Grtz.
Flystand 2 years ago
Great! =P
But shouldn´t you type using namespace std; just after loading libraries? Because all elements of the standard c++ library are declared in namespace std?
aerosmithfan4ever 3 years ago
ya i did start programming yesterday lol! in C++ anyway i worked with flash just a little before this.
dorns606 3 years ago
Great for a begginer...did you start learning programming yesterday aswell?
Jagatia 3 years ago
go download a screen recorder :P
snasebrase 3 years ago 2