自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.7

#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;void TimeTrans(int h, int m) { cout << "Time: " << h << ":" << m << endl;}int main() { int hours, minutes; cout << "Enter the number o.

2021-10-13 20:23:00 64

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.6

#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;double trans(double LightYears) { double AstronomicalUnit = 0.0; AstronomicalUnit = LightYears * 63240; return AstronomicalUnit;}int main() { double Lig; cout << .

2021-10-13 20:12:15 236

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.5

#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;void temperature() { double celsius,Fahrenheit; cout << "please enter a celsius value :"; cin >> celsius; Fahrenheit = 1.8 * celsius + 32.0; cout << cels.

2021-10-13 11:28:00 460

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.4

#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;int main() { int year, month,day; cout << "enter your age: "; cin >> year; month = year * 12; cout << "You have passed " << month << " month".

2021-10-13 11:15:17 54

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.3

#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;void test01() { cout << "Three blind mice" << endl;}void test02() { cout << "See how they run" << endl;}int main() { test01(); test01(); test0.

2021-10-13 11:02:30 38

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.2

练习内容:编写一个C++程序,它要求用户输入一个以long为单位的距离,然后将它转码(一long等于220码)。代码#define _CRT_SECURE_NO_WARNINGS#include<iostream>using namespace std;void test() { int dis = 0; int cod = 0; cout << "please enter your long : "; cin >> dis; cod = d.

2021-10-13 10:34:31 104

原创 C++ Primer Plus (第6版)章节课后编程练习 - 2.7.1

编写一个C++程序,它显示您的姓名和地址。#define _CRT_SECURE_NO_WARNINGS#include<iostream>#include<string>using namespace std;int main(){ string address; string name; cout << "Enter the your name: "; cin >> name; cout << "Enter the

2021-10-10 23:11:45 61

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除