C++ Primer Plus 编程练习代码
Gerax
C++编程学习者 爱好者
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《C++ Primer Plus(第6版)》编程练习代码 Chapter 8
Chapter 88.1#includeusing namespace std;void show(char * ch, int n = 0);int main(){ char ch[10] = "A B C\n"; for (int i = 0; i 5; ++i) { cout << i << endl; sho原创 2017-09-27 15:26:40 · 254 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 7
Chapter 77.1#include<iostream>using namespace std;double mean(double x, double y);int main(){ double x, y, m; do { cout << "Enter x: "; cin >> x; cout << "Enter y:原创 2017-09-26 16:58:21 · 787 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 6
Chapter 66.1#include<iostream>#include<cctype>using namespace std;int main(){ char ch; cin.get(ch); while (ch != '@') { if (!isdigit(ch)) if (islower(ch))原创 2017-09-26 16:45:47 · 296 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 5
Chapter 55.1#include<iostream>int main(){ using namespace std; int min, max, sum = 0; cout << "Enter min number: "; cin >> min; cout << "Enter max number: "; cin >> max; fo原创 2017-09-26 16:21:36 · 315 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 4
Chapter 44.1#include <iostream>#include <string>int main(){ using namespace std; string first_name, last_name; char grade; int age; cout << "What is your first name? "; getlin原创 2017-09-26 16:13:30 · 290 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 3
Chapter 33.1#include <iostream>int main(){ using namespace std; const int cm2m = 100; int rcm, cm, m; cout << "Enter your height: ___\b\b\b"; cin >> rcm; m = rcm / cm2m; cm原创 2017-09-26 16:07:49 · 255 阅读 · 0 评论 -
《C++ Primer Plus(第6版)》编程练习代码 Chapter 2
Chapter 22.1#include <iostream>int main(){ using namespace std ; cout << "XWG\n" << "HZAU"; cin.get(); return 0;}2.2#include <iostream>int main(){ using namespace std; doub原创 2017-09-26 15:59:09 · 301 阅读 · 0 评论
分享