- 0
- 0
- 约1.45万字
- 约 24页
- 2017-09-01 发布于湖北
- 举报
一1.cpp#include iostream#include cstdlibusing namespace std;int main(){ intprice,s,n(1);srand(time(NULL)); //获得随机数price=(rand())%1001; while(n) //n用来判断是否找到正确的价格 {coutinput the number you guess:;cins;if(sprice)coutthe number you guess is lower.\n;else if(sprice)coutthe number you guess is higher.\n;else n=0;}coutyou got the right answer.;system (pause);return 0;}一2.cpp#include iostream#include cmathusing namespace std;class Point //Point类的创建{ public:Point(int xx=0,int yy=0) {X=xx;
您可能关注的文档
最近下载
- 2021年一级注册消防工程师继续教育题库--消防应急照明考试.pdf VIP
- 高等职业教育专科英语课程词汇表(2021版).pdf VIP
- AP宏观经济学 2012年真题 (选择题+问答题) AP Macroeconomics 2012 Released Exam and Answers (MCQ+FRQ).pdf VIP
- 口渴了-朋友帮你.ppt VIP
- 灯塔施工方案.docx
- 2019年注册消防工程师继续教育题库.pdf VIP
- (完整word版)2019注册消防工程师继续教育三科试题及答案.doc VIP
- 高钠血症多学科决策模式中国专家共识(2025版).docx VIP
- 2019年消防继续教育试题汇总及答案.docx VIP
- 2019年一级注册消防工程师继续教育三科题库+答案 .pdf VIP
原创力文档

文档评论(0)