Guest User

Untitled

a guest
Jun 18th, 2014
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. #include "iostream"
  2.  
  3. int main()
  4. {
  5.     int *counter = new int;
  6.     *counter = 1;
  7.  
  8.     while ( true )
  9.     {
  10.         std::cout << counter << ":  " << *counter;
  11.         getchar();
  12.         *counter = *counter + 1;
  13.     }
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment