Last active
February 27, 2016 18:12
-
-
Save madratman/122193f12f7863633c59 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> | |
#include <string> | |
#include <cstring> | |
#define xstr(a) str(a) | |
#define str(a) #a | |
int main() | |
{ | |
std::string name = "madratman"; | |
if( xstr(name) == "name" && !strcmp(xstr(name), "name") && "madratman"==name && "madratman"=="madratman" ) | |
{ | |
std::cout << "1"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment