Created
August 14, 2014 09:11
-
-
Save KPCCoiL/0bf7897000cce0740719 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#define for _FOR_BROKEN=0;for | |
#define break {_FOR_BROKEN=1;break;} | |
#define ELSE if(!_FOR_BROKEN) | |
bool _FOR_BROKEN; | |
using namespace std; | |
int main() { | |
for (int i = 0; i < 10; i++) { | |
cout << i << endl; | |
if(i == 5) break; | |
} | |
ELSE cout << "not broken" << endl; | |
for (int i = 0; i < 10; i++) | |
cout << i << endl; | |
ELSE cout << "not broken" << endl; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
123