Thats true for this case, but if you got user input using the standard istream, cin.get() will think that you pressed an enter key already - after you enter your data type. Also, system("PAUSE"); is plausible, but system commands do not run on other OS's, so that wouln't be good for anyone running something other than windows. I guess you can use any one of the three - depending on the occasion
А какой это IDE и / или компилятор?
Спасибо за туториал.
jw200 7 months ago
@jw200 Dev-C++. Обьяснение как его скачать, можно найти в нулевом уроке (Урок 0). Не за что :)
zaychenok 6 months ago
Impressive video. Knowledge is one of the most valuable things in the world.
Aalatemplates 7 months ago
The power function doesn't work. You can't use a for loop to raise a base to a fractional power.
thatguyoverthere121 11 months ago
lol u always seem to be wasting time using endl , why not use \n ?
Goldeneagle704 3 years ago
endl flushes the output buffer and looks neater than having \n at the end of your string.
marmuhlade 2 years ago
Have you done anything on vectors yet? You mentioned it in an earlier tutorial, was wondering if i'd missed it. Cool videos, I'm learning alot :)
Dakatt1 3 years ago
I was actually going to do a tutorial on vectors, and I've tried making a couple - but they didn't turn out that well.. I'll keep trying though =)
zaychenok 3 years ago
The word you were looking for is the "Product". :D Good tutorial by the way.
dalindeck 3 years ago
You'd optimate the code if you used cin.get() instead of getch.
thenicelordj 4 years ago
Thats true for this case, but if you got user input using the standard istream, cin.get() will think that you pressed an enter key already - after you enter your data type. Also, system("PAUSE"); is plausible, but system commands do not run on other OS's, so that wouln't be good for anyone running something other than windows. I guess you can use any one of the three - depending on the occasion
zaychenok 4 years ago