Stream from a String Instead of CIN in C++