#include
#include
#include
using namespace std;
int main(){
std::string str;
std::string s("s"), p("p"), g("l"),q("q");
cout " " " q\n" buffer;
buffer.reserve(20);
std::string num_buf;
bool loop_continue(true);
while( loop_continue ){
cin >> str;
if (str == s){
cout Please type number to stack" > num_buf;
int temp;
try{
temp = std::stoi(num_buf);
}catch (const std::out_of_range &){
cout (cout, ", "));
cout >inputed\n";
// count++;
//cout << str;
}
return 0;
}
MSVC2013
MSVC2013
stackってあまり触れたことなかったなと思って
コメントはまだありません。