C++primerplus(第6版)中文版编程练习提高知识材料学习答案解析.docVIP

  • 38
  • 0
  • 约 143页
  • 2019-11-15 发布于安徽
  • 举报

C++primerplus(第6版)中文版编程练习提高知识材料学习答案解析.doc

C++primerplus(第6版)中文版编程练习提高知识材料学习答案解析

-+ 第二章:开始学习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(); using nam

文档评论(0)

1亿VIP精品文档

相关文档