jweinst1
9/5/2016 - 11:36 PM

stringio.cpp


#include <string>       // std::string
#include <iostream>     // std::cout

int main () {
	//basic io with string class
	std::string foo;
	std::cout << "say something >";
	std::cin >> foo;
	std::cout << "you said: " << foo << std::endl;
	std::cout << foo[0] << std::endl;
	return 0;
}