C++ Tutorial (22) - Absolute n00b spoonfeed
Uploader Comments (antiRTFM)
Top Comments
-
it would be funny if you named the counter variable "C" then it would have been
for ( int = C ; C<100 ; C++)
-
Legend :D!
All Comments (60)
-
WHOOT!!! Finally , the awesome code of "loops". :D
-
where is 20 and 21?
-
@gamma526 you mean int C = 0
-_-
-
@LordOfMedusa it wouldnt be ==2. it would be
for ( int i = 0;
i < 10;
i+=2
){}
Sry had to separate it because youtube doesn't allow code
-
The best!
-
could you use ==2 or another int to increase by more than one
-
@89myacc to do it like that you need counter=counter+1
-
for some reason every time i go to sleep since i watched this video i hear countless whispers inside my ear "hello world...!" x_x
-
Wonderful stuff man... Very helpful!
-
Is there any way to have a variable specified BEFORE the loop? like if you have the user write a # then that number is the number of times the loop reruns?
what was the forum's name again ?
the6aces 1 year ago
@the6aces see video info
antiRTFM 1 year ago 5
I really enjoyed the videos up untill now Anyway I had a question when I use counter + 1 instead of ++ the loope is infinite. Why can't you use + 1.
89myacc 2 years ago 3
1) you probably didnt assign anything to your 'counter' yet so it acts crazy. Never use a variable before initializing it with a value!
2) "counter + 1" will never keep counting up higher and higher until its time to stop. the ++ operator counts it up.
antiRTFM 2 years ago
i have inserted 2 conditions in the loop one of them been ignored
skimo9000 2 years ago
see my channel FAQ #3 and #2
antiRTFM 2 years ago