![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++ Premier Plus
凡天宁
这个作者很懒,什么都没留下…
展开
-
C++ Premier Plus丨编程练习答案丨第十章
未完成第一题bankaccount.h//#ifndef BANKACCOUNT_H_//#define BANKACCOUNT_H_#include<iostream>class CBankAccount{private: std::string m_name; std::string m_account; double m_saving;public: CBankAccount(const std::string name, const std::string ac原创 2021-07-13 00:41:39 · 159 阅读 · 0 评论 -
C++ Premier Plus丨编程练习答案丨第四章
C++ Premier Plus丨编程练习答案丨第四章#include<iostream>#include<string>#include<cstring>#include<array>using namespace std;int main(){ //4_1 /*string firstName = ""; string lastName = ""; char grade = 'a'; int age = 0; cout<<原创 2021-07-11 23:37:05 · 187 阅读 · 2 评论 -
C++ Prepmier Plus丨笔记丨第四章
C++ Prepmier Plus丨笔记丨第四章#include<iostream>#include<string>#include<array>using namespace std;int main(){ //ARRAY /*int yam[3]; int patato[3] = {3,4,5};//define it in this way, [] is allow to be empty BUT NOT RECOMMENDED yam[0] =原创 2021-07-11 21:24:56 · 79 阅读 · 0 评论 -
C++ Premier Plus丨编程练习答案丨第三章
未完成#include<iostream>using namespace std;int main(){ //3_1 /*const double inchToFoot = 12; int tall; cout<<"input your tall(int)(inch) "<<"___\b\b\b"; cin>>tall; cout<<endl; cout<<"your tall(foot) is "<<t原创 2021-07-09 18:52:59 · 234 阅读 · 0 评论 -
C++ Premier Plus丨笔记丨第三章
#include<iostream>using namespace std;int main(){ //负数 int test = -1; cout<<test<<endl; //sizeof cout<<"size of int is "<<sizeof(test)<<endl; //MAX and MIN cout<<"INT_MAX = "<<INT_MAX<<endl;//符原创 2021-07-09 14:55:04 · 164 阅读 · 0 评论 -
C++ Primer Plus丨编程练习答案丨第二章
C++ Primer Plus编程练习答案丨第二章#include<iostream>using namespace std;int main(){ cout<<"My name is "<<"pyp"<<endl; cout<<"I'm living in "<<"HLG"<<endl; return 0;}#include<iostream>using namespace st原创 2021-07-08 18:27:54 · 181 阅读 · 0 评论