True vs 1
example: string s = "SoloLearn"; cout << (s==s); The output is 1, since it is correct that o==o. Just curious, would the computer ever output "True" instead of 1 (or "False" instead of 0)?
Not until you specify so. You can use the std::boolalpha format flag in the string streams to output the textual representation of the boolean. For example, std::cout << std::boolalpha << true << std::endl; std::cout << false; // don't need boolalpha here as it has already been set for cout Outputs true false
Python — File Handling
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
Help me solve this (using loop)
What is wrong? Error on test.
Help me wiht python