- 博客(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 91
原创 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 285
原创 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 568
原创 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 77
原创 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 57
原创 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 131
原创 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 77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人