![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ primer plus第6版练习题答案
theThreeDay
这个作者很懒,什么都没留下…
展开
-
C++primer plus 第五章练习题
#include<iostream>using namespace std;int main() { int first_int; int second_int; int len, num = 0; int index = 0; cout << "请输入俩个整数:(先输入较小的整数)"; cin >> first_int; cin >> second_int; len = second_int - first_int + 1;...原创 2021-04-14 14:05:48 · 119 阅读 · 0 评论 -
C++primer plus 第四章练习题
#include <iostream>#include <windows.h>using namespace std;int main(void){ char first_name[64]; char last_name[64]; char grade; int age; cout << "What is your first name? "; cin.getline(first_name,sizeof(first_name)); cou...原创 2021-04-08 22:53:11 · 116 阅读 · 0 评论 -
C++primer plus 第三章练习题
#include <iostream>using namespace std;int main(){ int inch; double feet; const double factor = 0.0833333333333; cout<<"请输入身高(英寸)____"; cin>>inch; feet = factor * inch; cout<<"身高为"<<feet<<"英尺"<<endl...原创 2021-04-03 15:38:19 · 117 阅读 · 0 评论 -
C++primer plus第二章练习题
#include <iostream>using namespace std;int main(){ cout<<"姓名:第三天"<<endl; cout<<"居住地:中国苏州"<<endl; system("pause"); return 0;}#include <iostream>using namespace std;int main(){ int _long; int ma; c...原创 2021-03-31 23:28:34 · 111 阅读 · 0 评论