User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







cpp:control_structures:while

while

    #include <iostream> /* including standard library */
 
    while ( condition == true ) {
    do something until condition untrue
    }

cpp Sourcecode Example

#include <iostream> /* including standard library */
 
using namespace std;
int main(void) {
    int i=0;
 
    while (i <= 99) {
        cout << i << endl;
        i++;
    }
    return 0;
}
  //output://
  
  0
  1
  2
  3
  4
  5
  6
  7
  ...
  up to 99
advertising
cpp/control_structures/while.txt · Last modified: 2012/10/12 02:12 (external edit)

Impressum Datenschutz