Advertisement
jacknpoe

Sem variável na main

Nov 23rd, 2013
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.13 KB | None | 0 0
  1. #include<iostream>
  2.  
  3. int &t(void) {
  4.     static int t=100;
  5.     return t;
  6. }
  7.  
  8. int main(void) {
  9.     for( ; std::cout<<t()--<<" ", t() ; );
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement