Conversion of Basic to C++
So my question is what is that "TO" in the for loop?
The Basic Code is:
FOR I=0 TO NN;
I want to know what that TO is?
Thanks in Advance,
Djmax
For counter = start To end |
So
FOR I=0 TO NN;
is the same as
for(int i = 0/*start*/; i < 50 /*end or NN*/; ++i)
TO is just the syntax to let the interpreter know that you want it to loop from 0 until NN.
Outside of that I'm not quite sure what you are asking.
Topic archived. No new replies allowed.