Search Header Logo
C++ Output (Print Text)

C++ Output (Print Text)

Assessment

Presentation

Computers

University

Practice Problem

Medium

Created by

Kittisay SENGTHONG

Used 4+ times

FREE Resource

5 Slides • 2 Questions

1

C++ Output (Print Text)

ຄຳສັ່ງສະແດງຜົນອອກທາງໜ້າຈໍ

Slide image

2

C++ Output (Print Text)

The cout object, together with the << operator, is used to output values/print text:

Slide image

3

Multiple Choice

ຄຳສັ່ງສະແດງຜົນອອກທາງໜ້າຈໍ

1

cin

2

cout

3

show

4

ສະແດງ

4

cout

You can add as many cout objects as you want. However, note that it does not insert a new line at the end of the output:

Slide image

5

C++ New Lines

To insert a new line, you can use the \n character:

Slide image

6

Fill in the Blank

ຄຳສັ່ງລົງແຖວ

7

New Lines

Another way to insert a new line, is with the endl manipulator:

Slide image

C++ Output (Print Text)

ຄຳສັ່ງສະແດງຜົນອອກທາງໜ້າຈໍ

Slide image

Show answer

Auto Play

Slide 1 / 7

SLIDE