Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- //using namespace std;
- #include <string>
- struct IO {
- };
- IO cout;
- void operator << (IO const& io, const char* s) {
- const char* ptr = s;
- while(*ptr != '\0') {
- std::cout << (int)(*ptr) << ' ';
- ptr += 1;
- }
- }
- int main() {
- for(int i = 0; i < 10; i++) {
- cout << "Hello world ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement