L15io - Review of Strings q q q q q q q q what is it and...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
what is it and what is the difference between the two lines: string mystr(“Hello”); string mystr2=“Hello”; what is getline ? How is it different from the extraction operator what is string concatenation? what is the concatenation operator? how are strings compared? Which one is greater? hell bell hello what does size() do? How is it different from length() ? what is the difference between find() and find_first_of() ? can a string be passed as parameter? by value? by reference? can it be returned by a function? how can you display a string value in gdb ? Review of Strings
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Input/Output
Background image of page 2
C++ uses streams for input and output stream - is a sequence of data to be read ( input stream ) or a sequence of data generated by the program to be output ( output stream ) by default only standard streams are declared: cin (console input) cout (console output) files are used to store information on permanent basis to do file input/output <fstream> needs to be included an input or output stream needs to be declared: ifstream in_stream; // input stream
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/22/2010 for the course CS 23021 taught by Professor Staff during the Spring '08 term at Kent State.

Page1 / 9

L15io - Review of Strings q q q q q q q q what is it and...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online