C++ Console Lesson 8: While and Do While Loops
More at xoax.net This C++ recording explains how to ingest patch and do-while loops in C++. Please accede every questions to our installation xoax.net
Related Posts
Comments
Comment from StefanH3176
Time December 2, 2011 at 10:29 am
@iiperento ctrl F5 is the start without debugging in the 2010 version. if you debug, the program will start, and end before you can see anything, but if you start without debugging it won’t immediately close
Comment from bcut
Time December 2, 2011 at 10:39 am
@chenscc – actually it looks like the later Lesson 14 tutorial did address the difference between postfix and prefix opeations; i would never have written the statement “iCount + 1= iCount” as such, it was merely a matter of semantics to get the point accross.
Comment from chenscc
Time December 2, 2011 at 10:41 am
@bcut
iCount + 1= iCount is a wrong statement. Left operand must be a 1 – value.
Difference between++iCount and iCount++ lies in values of the variables ++iCount and iCount++ ; here both ++iCount and iCount++ act as not only operators but also variables.
Assuming iCount=3, after executing ++iCount, we have ++iCount=4 while executing iCount++ yields iCount++=3.
Comment from iiperento
Time December 2, 2011 at 11:19 am
@bcut ++iCount and iCount++ is the same, doesnt matter how will u type it i think
Comment from bcut
Time December 2, 2011 at 12:18 pm
hmmm…doesn’t:
++iCount mean iCount + 1= iCount
vs
iCount++ mean iCount = iCount + 1;
?
Comment from iiperento
Time December 2, 2011 at 12:19 pm
@2007Justm3 whats the diff of debugging and Ctrl+F5?
Comment from MrFox1231
Time December 2, 2011 at 1:14 pm
@MrFox1231 so far ive noticed that C# seems to be more directed towards the network :
Comment from MrFox1231
Time December 2, 2011 at 1:38 pm
oh bullocks… just noticed that the programing class i will take this fall-winter-autum is based around C#…
how big is the difference between C# and C++?
is it major or sort of unoticable?
Comment from 2007Justm3
Time December 2, 2011 at 1:51 pm
@runizgozilla
Your not “Running without Debugging”.
To run your program without debugging, press “Ctrl+F5″.
Comment from doodooman122
Time December 2, 2011 at 1:58 pm
@qwas12348gr5 Hey Li. This is not Z xD
Comment from okorewq
Time December 2, 2011 at 2:12 pm
@xxtylerxx1 Ok and all, but not with any intention of offense, why do you think it’s relevant to tell us your age?
Comment from qwas12348gr5
Time December 2, 2011 at 2:14 pm
@Archlvt
Oh, okay. Dang. Kinda sucks you can’t “undeclare” it lol. Oh well, I don’t really care, there’s no way I’m gonna write all the crap infront of everything lol. Thanks
Comment from Archlvt
Time December 2, 2011 at 2:25 pm
@qwas12348gr5 There are some minor advantages in precision to not using namespace, but that’s really more for advanced programmers, I’ve never had to neglect namespace for any reason before personally. If you declare the namespace, then that covers the whole program and you cant un-declare it, for lack of a better word. Honestly, I just always declare it.
Comment from qwas12348gr5
Time December 2, 2011 at 2:57 pm
@Archlvt
Well then, why doesn’t he use namespace? I still don’t know lol
Comment from runizgozilla
Time December 2, 2011 at 3:38 pm
I never get the ‘please press any key to continue’
Comment from bmccormick18
Time December 2, 2011 at 4:04 pm
@PoizonFart do while checks after it does the code, while checks first then does it
Comment from mag1cal911
Time December 2, 2011 at 4:36 pm
@Archlvt I WAS SUFFERING I LOVE U MAN ! THANKS ALOT!
Comment from vivalatip
Time December 2, 2011 at 4:45 pm
I think the 5 and 6 times repeating or wrong, isn’t it the opposit?
Comment from MrExtremeTV
Time December 2, 2011 at 5:34 pm
++iCount makes the number count insteado f reapeating 0 on and on and on
Comment from PoizonFart
Time December 2, 2011 at 6:32 pm
So is a Do While loop better or a While loop?
Comment from dubbelnetolk
Time December 2, 2011 at 6:36 pm
void main() is not C++ but C# or something
int main() is C++
Comment from Archlvt
Time December 2, 2011 at 7:27 pm
@susideguy Yes it’s the Standard Namespace. You can either use it before everything or you can declare the namespace at the top of your code and avoid having to use it. Like I mentioned before, it’s better to do it both ways so that you get a deeper understanding of it. It also helps to learn several different methods of….well, everything, so that you aren’t lost when reading someone ELSES code who may write differently than you do.
Comment from susideguy
Time December 2, 2011 at 8:02 pm
@Archlvt wait the Standard C++ coding?
std:: stands for standard right?
Comment from Ethaninja
Time December 2, 2011 at 8:53 pm
@Archlvt Haha
Comment from prestigeScript
Time December 2, 2011 at 9:33 am
why not just do cout << iCount++ << endl; ?