I dont understand for loops, like this one:
Code:#include <iostream.h> int main() { for(int x=0;x<100;x++) { cout<<x<<endl; } std::cin.get(); return 0; }
How can I make it go up by 5, or by 10 till it gets to 100, how does the x++ work? I get x=0 and x<100, but not x++... can someone explain for loops to me?