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 · 228 阅读 · 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 · 267 阅读 · 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 · 134 阅读 · 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 · 287 阅读 · 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 · 230 阅读 · 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 · 247 阅读 · 0 评论
分享