电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

c++primerplus(第六版)课后编程练习答案

c++primerplus(第六版)课后编程练习答案_第1页
1/17
c++primerplus(第六版)课后编程练习答案_第2页
2/17
c++primerplus(第六版)课后编程练习答案_第3页
3/17
第二章:开始学习 C++//ex2。1——display your name and address#include〈iostream〉int main(void){using namespace std;cout〈〈"My name is liao chunguang and I live in hunan chenzhou。\n”;}//ex2。2-—convert the furlong units to yard uints-把浪单位换位码单位#include〈iostream>double fur2yd(double);int main(){using namespace std;cout〈〈"enter the distance measured by furlong units:";double fur;cin〉>fur;cout〈<”convert the furlong to yard"〈>age; int month; month=age*12; cout<〈age<〈” years is "<〈month<〈" months"<double C2F(double);int main(){using namespace std;cout〈〈"please enter a Celsius value:”;double C;cin〉〉C;double F;F=C2F(C);cout<〈C<<" degrees Celsius is ”<〈F<〈" degrees Fahrenheit。”<double convert(double);//函数原型int main(){using namespace std;cout〈〈”Enter the number of light years:”;double light_years;cin〉〉light_years;double astro_units;astro_units=convert(light_years);cout〈〈light_years<<” light_years = "<

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

c++primerplus(第六版)课后编程练习答案

确认删除?
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群