Primer plus
Fiona_Deng
Fiona的学习笔记
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++ Primer Plus 第三章
//2 对于全局变量 const double pound = x,其中x的取值要是小数形式,在编译下分数不能转换成小数,结果出错。 问题:在vs2012编译环境下,浮点数的分数表示。 //4 #include <iostream> using namespace std; int main() { long second = 0; int minute = ...原创 2018-07-13 14:27:56 · 196 阅读 · 0 评论 -
C++ Primer Plus Chapter 4 --复合类型(笔记)
1. char类型 char类型是专为存储字符而设计的,通过使用字母的数值编码解决储存问题。最常见的符号集是ASCII字符集,字符集中的字符用数值编码表示(ASCII码),例如:A的编码是65,M的编码是77. #include <iostream> using namespace std; int main() { char ch; cout << "E...原创 2018-07-13 19:48:13 · 532 阅读 · 0 评论 -
C++ primer plus Chapter4--复合类型 程序练习
//1(string) #include <iostream> #include <string> using namespace std; int main() { string FirstName; string LastName; string grade; int age; cout << "What is your ...原创 2018-08-01 10:25:35 · 951 阅读 · 0 评论 -
C++ Primer Plus Chapter5--循环和关系表达式
//1 #include <iostream> using namespace std; int main() { int number_1 = 0; int number_2 = 0; int SmallNumber = 0; int BigNumber = 0; int sum = 0; cout << "Enter two number:...原创 2018-08-02 14:23:38 · 418 阅读 · 0 评论 -
C++Primer Chapter_2
//1 #include <iostream> #include <string> using namespace std; int main () { string name; string address; cout << "Enter your name: " << endl; cin >> name; cout ...原创 2018-09-09 11:21:37 · 445 阅读 · 0 评论
分享