![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++PrimerPlus(第6版)中文版实例
?True:False
C/C 、Python小白,这个程序猿很懒就写了这么点东西
展开
-
C++PrimerPlus(第6版)中文版十一章实例代码
实例11.12usetime3.cpp。实例11.20stonewt1.cpp。实例11.3usetime0.cpp。实例11.6usetime1.cpp。实例11.9usetime2.cpp。实例11.11mytime3.cpp。实例11.17stonewt.cpp。实例11.2mytime0.cpp。实例11.5mytime1.cpp。实例11.8mytime2.cpp。实例11.14vector.cpp。实例11.21stone1.cpp。实例11.18stone.cpp。原创 2023-11-08 22:26:02 · 89 阅读 · 1 评论 -
C++PrimerPlus(第6版)中文版第十章实例代码
实例10.6usestock2.cpp。实例10.9usestock2.cpp。实例10.3usetock0.cpp。实例10.12stacker.cpp。实例10.5stock10.cpp。实例10.8stock20.cpp。实例10.11stack.cpp。实例10.1stock00.h。实例10.2stock.cpp。实例10.4stock10.h。实例10.7stock20.h。实例10.10stack.h。原创 2023-11-08 21:57:14 · 557 阅读 · 1 评论 -
C++PrimerPlus(第6版)中文版第九章实例代码
实例9.1(头文件)#pragma once#ifndef COORDIN_H_#define COORDIN_H_struct polar{ double distance; double angle;};struct rect{ double x; double y;};polar rect_to_polar(rect xypos);void show_polar(polar dapos);#endif实例9.2#include<iostr原创 2021-07-25 18:01:52 · 360 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第八章实例代码
实例8.1#include<iostream>inline double square(double x){ return x * x;}int main(){ using namespace std; double a, b; double c = 13.0; a = square(5.0); b = square(4.5 + 7.5); cout << "a = " << a << ",b = " << b原创 2021-07-25 17:54:55 · 314 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第七章实例代码
C++PrimerPlus(第6版)中文版第七章实例代码实例7.1#include<iostream>void simple();int main(){ using namespace std; cout << "main() will call the simple() function:\n"; simple(); cout << "main() is finished with the simple() function.\n"; system原创 2021-05-14 21:01:31 · 245 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第六章实例代码
C++PrimerPlus(第6版)中文版第六章实例代码实例6.1#include<iostream>int main(){ using std::cin; using std::cout; char ch; int spaces = 0; int total = 0; cin.get(ch); while (ch != '.') { if (ch == ' ') ++spaces; ++total; cin.get(ch); } cout <原创 2021-05-14 20:43:57 · 206 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第五章实例代码
C++PrimerPlus(第6版)中文版第五章实例代码实例5.1#include<iostream>int main(){ using namespace std; int i; for (i = 0; i < 5; i++) cout << "C++ knows loops.\n"; cout << "C++ knows when to stop.\n"; system("pause"); return 0;}实例5.2#inc原创 2021-05-14 11:45:36 · 133 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第四章实例代码
C++PrimerPlus(第6版)中文版第四章实例代码实例4.1#include<iostream>int main(){ using namespace std; int yams[3]; yams[0] = 7; yams[1] = 8; yams[2] = 6; int yamcosts[3] = { 20,30,5 }; cout << "Total yams = "; cout << yams[0] + yams[1] + yam原创 2021-04-28 19:22:53 · 376 阅读 · 1 评论 -
C++PrimerPlus(第6版)中文版第三章实例代码
C++PrimerPlus(第6版)中文版第三章实例代码实例3.1#include<iostream>#include<climits>int main(){ using namespace std; int n_int = INT_MAX; short n_short = SHRT_MAX; long n_long = LONG_MAX; long long n_llong = LLONG_MAX; cout << "int is " <原创 2021-04-28 19:16:12 · 295 阅读 · 0 评论 -
C++PrimerPlus(第6版)中文版第二章实例代码
C++PrimerPlus(第6版)中文版第二章实例代码实例2.1#include<iostream>int main(){ using namespace std; cout << "Come up and C++ me some time."; cout << endl; cout << "You won't regret it!" << endl; system("pause"); return 0;}实例2.2#原创 2021-04-28 19:10:05 · 454 阅读 · 0 评论