User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







cpp:control_structures:do

do

  Syntax 
  do instruction while ( condition );

cpp Sourcecode Example

#include <iostream> /* including standard library */
 
using namespace std;
 
int main( void ) {
int i;
 
    do
        cout << "Hello World no " << i << endl;
    while (i++);
 
return 0;
}
  output
  Hello World no 0
  Hello World no 1
  Hello World no 2
  Hello World no 3
  Hello World no 4
  Hello World no ...
  Hello World no 1579
  
  and so on
advertising
cpp/control_structures/do.txt · Last modified: 2012/10/12 02:12 (external edit)

Impressum Datenschutz