Chapter 6 Handling Input and Output

6.1 How to Output Messages and Results to a User's Screen?

A flowchart uses the oblique parallelogram and the reserved word “Write” to display a message or the final results to the user's screen.

Image

where arg1, arg2, and arg3 can be variables, expressions, constant values, or alphanumeric values enclosed in double quotes.

The oblique parallelogram that you have just seen is equivalent to the following flowchart fragment.

Image

In C++, you can achieve the same result by using the statement

cout << arg1 << arg2 <<

Get C++ and Algorithmic Thinking for the Complete Beginner now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.