
C++学习笔记
wihoho
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Day 1:Introduction
1.1 Why use a language like C++ Conciseness Maintainability Portability 1.2 The compilation process sorce file>>>Prcessed code>>>Object file 1.3 General note...原创 2011-06-24 22:01:44 · 95 阅读 · 0 评论 -
Day 2: Flow of control
Control structure conditionals if switch loops while do...while for nested control structures 这些都跟java是一致的,谁叫java是从C++改过来的呢?2011-06-24 22:27:15 · 160 阅读 · 0 评论 -
Day 3: Functions
Why define your own functions? Readability Maintainability Code reuse #include <iostream> using namespace std; int raiseToPower(int base, int exponent) { int result = 1; for (int i...2011-06-26 15:25:03 · 100 阅读 · 0 评论 -
Day 4: Arrays and Strings
Array fixed number of elements of the same type stored sequentially in memory initialization, or unexpected results arrays are passed by reference multidimensional arrays are merely an abstrac...2011-06-26 15:51:48 · 141 阅读 · 0 评论 -
Day 5: Pointers
&x evaluates to the adress of x in memory. *(&x) evaluates to the someting as x. Pointer advantages: More flexible pass-by-reference Manipulate comlex data structure efficiently Use p...2011-06-28 23:01:22 · 121 阅读 · 0 评论 -
Day 6: User-defined datatypes
class A user-defined datatype which groups together related pieces of information Instance An instance is an occurrence of a class class student{ public: char *name; int studentID; ...2011-06-29 15:32:47 · 147 阅读 · 0 评论 -
Day 7: Object-oriented programming and inheritance
3 primary features of OOP Encapsulation Inheritance Polymorphism2011-06-29 16:05:59 · 145 阅读 · 0 评论