MSVC2013

zxc
記事: 79
登録日時: 13年前
住所: 日本の背骨(?)あたり

MSVC2013

投稿記事 by zxc » 9年前

stackってあまり触れたことなかったなと思って

CODE:



#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;
}

コメントはまだありません。