char *s = "DEHLORW";
char *d = "2133464530";
for(i=0; d[i]; i++)
cout << s[d[i]-'0'];
///////////////////////////
i = 1<<1;
i |= 1;
cout << (i<<2) << ":" << (i>>2) << (i==2);
/////////////
x = 0;
cout << (x==0) << (x=0) << (0);
////////////////////////////
class c{
c(int i=0);
public: int a;
};
c::c(int i): a(i) {}
Crazy C++ Code
Leave a Reply
You must be logged in to post a comment.