2 ms·
I like how cout << 2 && 1 demonstrates the lameness of the whole C++ iostreams syntax. I'll have to remember that the next time an argument arises.
by CamperBob2 13y ago
I like how
cout << 2 && 1
demonstrates the lameness of the whole C++ iostreams syntax. I'll have to remember that the next time an argument arises.
- cldr 13y agoFeel free to change it to how you like it if you feel that another syntax would be more convenient. You can choose another operator or just create a variadic template function and use function syntax to avoid operator precedence issues.
- CamperBob2 13y agoprintf("%d", 2 && 1); seems to work OK.