Go back to Richel Bilderbeek's homepage.

Go back to Richel Bilderbeek's C++ page.

 

 

 

(C++) std::cin

 

'cin' stands for 'character input' and is an input stream.

 

 

#include <iostream>

#include <string>

 

int main()

{

//Ask the user for an input string

std::string userInput;

std::cin >> userInput;

}

 

 

 

Go back to Richel Bilderbeek's C++ page.

Go back to Richel Bilderbeek's homepage.