outline - --cin object--stream input operator

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

View Full Document Right Arrow Icon
Sheet1 Page 1 Simplest C++ Lecture Creating an empty project with VStudio.NET --Add existing cpp file to project (2 ways to do it). --Rebuild Solution (Build menu) 2.First program (hello.cpp) --begins with main() --must return 0 (or: void main() returns nothing) --iostream classes --cout object --endl object --stream output operator << --#include --namespaces 3. Basic C++ types (types.cpp) 4. Input-output using streams (simpleio.cpp)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: --cin object--stream input operator &amp;gt;&amp;gt;--strings with multiple words, using &amp;gt;&amp;gt; operator--getline (template library)--cin.ignore--cin.fail 5. String concatenation example (stringConcat.cpp)--strings are mutable--basically an array of bytes const.cpp simpleio.cpp strintConcat.cpp refs.cpp swap.cpp squares.cpp - purposely exceed array boundaries Using Header files (max2.h, max.cpp)...
View Full Document

This note was uploaded on 10/17/2010 for the course SCIS COP 4338 taught by Professor Kipirvine during the Spring '10 term at FIU.

Ask a homework question - tutors are online