- 7
- 0
- 约2.54万字
- 约 29页
- 2019-09-25 发布于湖南
- 举报
第二章:开始学习C++
//ex2.1--display your name and address
#includeiostream
int main(void)
{
using namespace std;
coutMy name is liao chunguang and I live in hunan chenzhou.\n”;
}
//ex2.2--convert the furlong units to yard uints-把浪单位换位码单位
#includeiostream
double fur2yd(double);
int main()
{
using namespace std;
coutenter the distance measured by furlong units:;
double fur;
cinfur;
coutconvert the furlong to yardendl;
double yd;
yd=fur2yd(fur);
coutfur furlong is yd yardendl;
return 0;
}
double fur2yd(double t)
{
return 220*t;
}
//ex2.3-每个函数都被调用两次
#includeiostream
void mice();
void see();
u
您可能关注的文档
最近下载
- 肌内注射技术操作规范 最新版.docx VIP
- 3C强制性产品认证系统资料.ppt VIP
- NB/T 47042-2014 卧式容器(最新版).pdf VIP
- 《风力发电场设计技术规范》(DL∕T5383-2007).pdf VIP
- 华师大版八年级数学上册《立方根》优质课课件.ppt VIP
- 2025 年大学水产养殖学(水产动物病害学)试题及答案.doc VIP
- 风力发电机组检修作业危险点及安全措施.docx VIP
- NB∕T 47012-2020 制冷装置用压力容器.docx VIP
- 2025年无人机驾驶员执照电池化学特性与性能衰减关系专题试卷及解析.pdf VIP
- 2025年拍卖师成交确认全流程综合能力测评专题试卷及解析.pdf VIP
原创力文档

文档评论(0)