摘要: #include<iostream>using namespace std; /* * * * * * * * * * ** * * * ** * * * * * * * * * * * * * **/ void starup(int n) { for (int i = 1; i <= n; i++ 阅读全文
posted @ 2022-07-05 16:25 江南王小帅 阅读(92) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std; /*引用双向传值 /* */ void func(int num) { num++;}void func2(int &pint) { pint++;} int main() { int value = 4; func(va 阅读全文
posted @ 2022-07-05 15:07 江南王小帅 阅读(20) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std; /* type *p p = new type[num] ... delete []p */ /* 分配100个整数空间,将1到100存储在这100个连续的空间里*/int main() { int *p; p = new 阅读全文
posted @ 2022-07-05 10:59 江南王小帅 阅读(65) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int *p; p = new int(100); if (p == NULL) { cout << "allocation failure" << endl; } else { cout << " 阅读全文
posted @ 2022-07-05 10:50 江南王小帅 阅读(45) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;int main() { int *p; p = new int; if (p == NULL) { cout << "allocation failure" << endl; } else { *p = 15; cout 阅读全文
posted @ 2022-07-05 10:47 江南王小帅 阅读(26) 评论(0) 推荐(0)
摘要: 本人感觉自己强迫症和懒癌晚期,我习惯打开电脑磁盘的时候文件夹的视图是按详细信息选项进行布局的,因为可以看到该文件最多的信息,不然每次都得点击一下太麻烦了,于是百度了一下,这里记录一下,如下: 1.打开一个文件夹,默认是图标显示的,我们把视图更改为"详细信息",然后我们点击"组织"以及"文件夹和搜索选 阅读全文
posted @ 2022-07-05 10:04 江南王小帅 阅读(2404) 评论(0) 推荐(0)