Until now, you have worked with string constants such as cout<<"hello World\n";. If you want to input, manipulate and output string, the string class provides a number of built-in functions that make string processing easier.

Please study the material at each of the links below.

  1. Hello World with strings
  2. Input a name
  3. Using getline
Like us on Facebook:

OER: Open Educational Resource
Creative Commons License Author: Janet E. Joy; Publisher:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License
Creative Commons Attribution-NonCommercial 4.0 International License
Last modified: May 18 2017 14:08:20.