摘要: 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) 编辑