The cout command allows you to display information in the message window. Numeric data is converted automatically.

Command format:

cout << arg1 << arg2 << argN;


Here:

arg1, arg2, argN - any number of variables of any type.

Example.

Display in the message window the result of calculating the sum of the areas of all apartments from the dsum variable


cout << "Area of all flats = " << dsum;