Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. //using namespace std;
  3. #include <string>
  4.  
  5. struct IO {
  6. };
  7.  
  8. IO cout;
  9.  
  10. void operator << (IO const& io, const char* s) {
  11.     const char* ptr = s;
  12.     while(*ptr != '\0') {
  13.         std::cout << (int)(*ptr) << ' ';
  14.         ptr += 1;
  15.     }
  16. }
  17.  
  18. int main() {
  19.     for(int i = 0; i < 10; i++) {
  20.         cout << "Hello world ";
  21.     }
  22.     return 0;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement