- 4
- 0
- 约2.54万字
- 约 28页
- 2019-06-02 发布于浙江
- 举报
第二章:开始学习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
您可能关注的文档
最近下载
- 10 铁路建设工程监理规范.ppt VIP
- 年研发2.6万千瓦铝-空气金属燃料电池项目可行性报告.doc VIP
- GB∕T 3655-2022 用爱泼斯坦方圈测量电工钢带(片)磁性能的方法.pdf
- ASME B30.10中文版-缆索、起重机、桅杆、提升机、吊钩、起重器、吊索的安全标准.doc VIP
- (2023)精麻药品培训考试题库附含答案 .pdf VIP
- 电信智能云服务交付工程师(网大版)备考试题库大全(附答案).doc VIP
- 安徽省马鞍山市2022-2023学年高一下学期期末考试化学试题原卷版+解析版.docx VIP
- 松梢螟综合防治技术规程DB14_T 3402—2025DB14T+3402—2025_可搜索.pdf VIP
- 安徽省马鞍山市2024-2025学年高一下学期期末考试化学含答案.doc VIP
- 安徽省马鞍山市2024-2025学年高一下学期期末考试化学试卷.docx VIP
原创力文档

文档评论(0)