Site Tools


cppexample

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cppexample [2012/07/13 19:18]
konovalov
cppexample [2012/07/13 19:19] (current)
konovalov [Random]
Line 183: Line 183:
  srand(time(NULL));​  srand(time(NULL));​
  for(int i = 0; i <= 100 ; i++){  for(int i = 0; i <= 100 ; i++){
-   cout << "​i"​ << i << "​="​ << rand() % 100 << endl;+   cout << "​i"​ << i << "​="​ << rand() % 100 << endl; // %100 для получения значения от 0 до 100
  }  }
  }  }
 ==== ForNew ==== ==== ForNew ====
cppexample.txt · Last modified: 2012/07/13 19:19 by konovalov

Page Tools