Chap 2 notes 29 - cout<<"x ="<< x cout<<"x ="<< x<<"\n" cout<<"x ="<< x<<\n

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

View Full Document Right Arrow Icon
29 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 << "x = " << x; cout << "x = " << x << "\n"; cout << "x = " << x << '\n'; cout << "x = " << x << endl; // “ \ n”,’ \ n’ & endl all mean new line...
View Full Document

This note was uploaded on 11/16/2011 for the course COP 2271 taught by Professor Staff during the Fall '11 term at University of Florida.

Ask a homework question - tutors are online