>>112
ひょ準入力からの一文字取得なら
int i = cin.get();
とか(最後はEOFが返るはず)

>>113
ostringstream ostr;
ostr<<"manko: "<<999<<endl;
string s = ostr.str(); //(*´∀`)