68 - Cool Program Working with F
作者:
社交帐号直接注册 | 来源:发表于
2018-01-10 14:39 被阅读0次#include <iostream>
#include <fstream>
using namespace std;
int getwhattheywant();
//main function
int main()
{
int whattheywant;
whattheywant = getwhattheywant();
while(whattheywant != 4)
{
whattheywant = getwhattheywant();
}
}
//getwhattheywant function
int getwhattheywant()
{
int choice;
cout << "1 - just plain items" << endl;
cout << "2 - helpful items" << endl;
cout << "3 - harmful items" << endl;
cout << "4 - quit items" << endl;
cin >> choice;
return choice;
}
本文标题:68 - Cool Program Working with F
本文链接:https://www.haomeiwen.com/subject/yvjonxtx.html
网友评论