摘要: Every object in C++ has access to its own address through an important pointer called this pointer. The this pointer is an implicit parameter to all m 阅读全文
posted @ 2019-05-16 11:02 Poission 阅读(104) 评论(0) 推荐(0) 编辑
摘要: Function Overloading in C++ You can have multiple definitions for the same function name in the same scope. The definition of the function must differ 阅读全文
posted @ 2019-05-16 10:51 Poission 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Base and Derived Classes A class can be derived from more than one classes, which means it can inherit data and functions from multiple base classes. 阅读全文
posted @ 2019-05-16 10:00 Poission 阅读(207) 评论(0) 推荐(0) 编辑
摘要: Defining a Function The general form of a C++ function definition is as follows − A C++ function definition consists of a function header and a functi 阅读全文
posted @ 2019-05-15 10:36 Poission 阅读(231) 评论(0) 推荐(0) 编辑
摘要: A scope is a region of the program and broadly speaking there are three places, where variables can be declared − Inside a function or a block which i 阅读全文
posted @ 2019-05-15 09:13 Poission 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Execute a sequence of statements multiple times and abbreviates the code that manages the loop variable. do...while loop Like a ‘while’ statement, exc 阅读全文
posted @ 2019-05-14 14:23 Poission 阅读(198) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main () { int i,j; // set the seed srand( (unsigned)time( NULL ) ); / 阅读全文
posted @ 2019-05-14 11:09 Poission 阅读(238) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int MAX = 8; int main () { int var[MAX] = {10, 100, 200,2,3,5,7,11}; int *ptr[MAX]; for (int i = 0; i < 阅读全文
posted @ 2019-05-14 10:25 Poission 阅读(218) 评论(0) 推荐(0) 编辑
摘要: https://www.tutorialspoint.com/cplusplus/cpp_multi_dimensional_arrays.htm an array with 5 rows and 2 colums. 5 行 2 列 阅读全文
posted @ 2019-05-14 10:07 Poission 阅读(64) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; int main() { cout << "Size of char : " << sizeof(char) << endl; cout << "Size of int : " << sizeof(int) << en 阅读全文
posted @ 2019-05-11 14:11 Poission 阅读(107) 评论(0) 推荐(0) 编辑