chap 2 notes 30 - cout <<...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
30 ESSENTIAL C++ STATEMENTS Print via cout and the Insertion Operator, << prints an expression list on the screen. x = 2.5; cout << "Hello world !!!"; cout << x;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: cout &lt;&lt; &quot;x = &quot; &lt;&lt; x; cout &lt;&lt; &quot;x = &quot; &lt;&lt; x &lt;&lt; &quot;\n&quot;; cout &lt;&lt; &quot;x = &quot; &lt;&lt; x &lt;&lt; '\n'; cout &lt;&lt; &quot;x = &quot; &lt;&lt; x &lt;&lt; endl; // \ n, \ n &amp; endl all mean new line...
View Full Document

Ask a homework question - tutors are online