上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页
摘要: 直奔主题,具体步骤如下: 1. 运行终端 2. cd /etc/init.d # 进入init.d目录 3. vim test 4. 在打开的test文件中加入以下内容: #!bin/sh /etc/rc.common #/init.d/my-test START=75 start(){ insmo 阅读全文
posted @ 2022-07-13 11:39 江南王小帅 阅读(2096) 评论(0) 推荐(0)
摘要: Qt :libpng warning: iCCP: known incorrect sRGB profile警告信息之解决方法 Qt 1、从ImageMagick的官网下载压缩包,地址: http://www.imagemagick.org/script/binary-releases.php 根据 阅读全文
posted @ 2022-07-11 08:14 江南王小帅 阅读(2376) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string>#include<algorithm>#include<ctime>using namespace std; string Random_Result() { char temp[] = "1234567890"; random_s 阅读全文
posted @ 2022-07-06 09:22 江南王小帅 阅读(476) 评论(0) 推荐(0)
摘要: 1 main函数 中的内容不宜过多。 2 当想在main函数中使用while时候,可以这样做: int main() {while(function1) //此处的while的循环体是一个空语句。 } function1() { 。。。 return 1; } // example #include 阅读全文
posted @ 2022-07-06 08:59 江南王小帅 阅读(313) 评论(0) 推荐(0)
摘要: #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)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 29 下一页