- 18
- 0
- 约2.54万字
- 约 28页
- 2019-08-31 发布于浙江
- 举报
第二章:开始学习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();
us
您可能关注的文档
最近下载
- 2025年技能人才评价外部质量督导员考试试卷及答案.docx VIP
- 不锈钢栏杆技术交底.doc VIP
- ASTM_D882-02_塑料薄膜拉伸性能测试标准.docx VIP
- 2026年技能人才评价外部质量督导员考试试卷及答案.docx VIP
- 现场工程量确认单.docx VIP
- 2025 中国成人心肺复苏与心血管急救指南(完整版)中文版 完整原文 + 专家解读.docx VIP
- 量化多因子选股系列(六):中银量价与基本面因子复合系列(II):价值掘金因子-20240305-中银证券-23页.pdf VIP
- GB 50316-2000 (2008年版) 工业金属管道设计规范.docx VIP
- 甘肃省补充规定甘交建设【2020】6号及软件操作指南.pdf VIP
- alc条板墙板安装技术交底.docx VIP
原创力文档

文档评论(0)