章1例题
来源:互联网 发布:天书世界披风数据 编辑:程序博客网 时间:2024/05/21 17:23
/*例1:显示 "HELLO WORLD"字符串*/#include <iostream>using namespace std;int main(){cout<<"HELLO WORLD"<<endl;return 0;}
/*例2:求最大数*/#include <iostream>using namespace std;int max(int x,int y){int t;if(x>y)t=x;if(y>x)t=y;return t;}int main(){int a,b,c;cout<<"请输入两个数:"<<endl;cin>>a>>b;c=max(a,b);cout<<"最大数是:"<<c<<endl;return 0;}
0 0
- 章1例题
- 例题1
- 章三例题1 UVA 272
- 刷紫书第三章例题(例题3-1,3-2,3-3)
- 刷紫书第四章例题(例题4-1,4-2,4-3)
- 刷紫书第五章例题(例题5-1到5-7)
- 第二章 例题6,例题7
- 第五章 数组例题
- 第二章例题
- 第四章例题练习
- 第四章例题
- 第六章的例题
- 第六章例题
- 章2例题
- 章3例题
- 第七章课本例题
- c++第八章例题
- 第三章例题
- day91(6.11)
- C++Primer 第五版 4.高级主题
- day92(6.12)
- C语言文件打开方式
- Source insight / Visual studio 2012 / UltraEdit 中显示TAB符用4个空格代替
- 章1例题
- day(93.6.13)
- nginx-upload-progress
- 第十六周工作总结
- Haskell学习——函数
- 静态页面生成功能实现构想
- windows程序设计学习笔记1--新建程序骤
- ArcGIS 10读书笔记 地理数据库
- 牛腩新闻发布系统