Programming Fundamentals: Dr. Sheikh Faisal Rashid Department of Computer Science and Engineering UET Lahore
Programming Fundamentals: Dr. Sheikh Faisal Rashid Department of Computer Science and Engineering UET Lahore
FUNDAMENTALS
Dr. Sheikh Faisal Rashid
[email protected],uet.edu.pk
Department of Computer Science and
Engineering UET Lahore
CONSOLE OUTPUT
• Take a closer look at std::cout
• Look at the behavior of <<
• Observe how << and arithmetic operations are
similar
• Other output streams:
• Standard error stream
• Standard logging stream
Console output
• Now that we have seen binary arithmetic operators, let us
revisit
std::cout << "Hello world!";
std::cout << std::endl;
std::cout << "The value " << 3.23 << " is greater than "
<< 1.53 << "." << std::endl;