User forums > General (but related to Code::Blocks)
Quick&dirty C++ language conformance tests
280Z28:
If someone tried any of the ones MSVC 2005 fails, I would want to slap them for making me go :? as I tried to read their code.
Michael:
--- Quote from: 280Z28 on January 22, 2006, 04:28:07 pm ---If someone tried any of the ones MSVC 2005 fails, I would want to slap them for making me go :? as I tried to read their code.
--- End quote ---
Which one for example?
Michael
280Z28:
--- Quote from: Michael on January 22, 2006, 05:33:30 pm ---
--- Quote from: 280Z28 on January 22, 2006, 04:28:07 pm ---If someone tried any of the ones MSVC 2005 fails, I would want to slap them for making me go :? as I tried to read their code.
--- End quote ---
Which one for example?
Michael
--- End quote ---
--- Code: ---int main(int argc, char *argv[])
{
int i = compl((2 bitor 4) xor 4) bitand 3;
bool b = not ((true or false) and true);
b and_eq true;
b or_eq false;
b xor_eq true;
b not_eq not b;
return 0;
}
--- End code ---
Michael:
--- Quote from: 280Z28 on January 22, 2006, 05:35:27 pm ---
--- Code: ---int main(int argc, char *argv[])
{
int i = compl((2 bitor 4) xor 4) bitand 3;
bool b = not ((true or false) and true);
b and_eq true;
b or_eq false;
b xor_eq true;
b not_eq not b;
return 0;
}
--- End code ---
--- End quote ---
Yes, I have to admit it has made me confusing too :D. Anyway, I like C++, because it can always surprise me with something I did not even know possible and therefore stimulate my desire to continue studying and using it.
Anyway, e.g., compl is an alternative to the ~ operator. The others are explained here.
Michael
280Z28:
--- Quote from: Michael on January 22, 2006, 05:49:33 pm ---Yes, I have to admit it has made me confusing too :D. Anyway, I like C++, because it can always surprise me with something I did not even know possible and therefore stimulate my desire to continue studying and using it.
Anyway, e.g., compl is an alternative to the ~ operator. The others are explained here.
Michael
--- End quote ---
No, no. compl is a way to get coworkers to :x and then kill you. :lol:
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version