{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

outline - -cin object-stream input...

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) --show conversions & warnings 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

  • Spring '10
  • KipIrvine
  • stream output operator, Simplest C++ Lecture, existing cpp file, stream input operator, String concatenation example

{[ snackBarMessage ]}

Ask a homework question - tutors are online