C/C++の宿題を片付けます 61代目
■ このスレッドは過去ログ倉庫に格納されています
0489デフォルトの名無しさん
2006/02/22(水) 23:11:36rand();
std::deque<int> container;
for(i = 1; i <= 100; ++i) container.push_back(i);
std::randum_shuffle(container.begin(), container.end());
while(1) {
std::cout << container.front() << std::endl;
container.pop_front();
std::string str;
std::cout << "ビンゴですか(y/n)?";
std::cin >> str;
if(str[0] == 'y' || container.empty())
return 0;
}
動くかどうかしらね
■ このスレッドは過去ログ倉庫に格納されています