上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: Linux开机自启动的几种方式: 操作系统:linux mint 17.3 第一种方式:在/etc/rc.local文件中加入启动命令 这种方式适合linux用户手动配置自启动程序。 第二种方式:在/etc/rc[0-6].d/目录建立软链接,软链接指向/etc/init.d/目录下的控制脚本 下图 阅读全文
posted @ 2020-11-20 14:33 刘大侠GG_B 阅读(2847) 评论(0) 推荐(0) 编辑
摘要: 1 /* 最简单的窗口base.c */ 2 #include <gtk/gtk.h>//包括了 GTK+中所有的控件、变量、函数和结构的声明 3 int main ( int argc , char* argv[]) 4 { 5 //声明窗口控件的指针,GtkWidget是GTK+2.0控件类型 阅读全文
posted @ 2020-09-28 14:11 刘大侠GG_B 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 有效用户、组ID及其实际用户、组ID 代码 #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> int main(int argc, char* 阅读全文
posted @ 2020-09-23 11:40 刘大侠GG_B 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 基于gnome的快捷键的设置 前提 前提需要安装gnome-settings-daemon-3.28.1-8.axs7.aarch64.rpm 分析 vim /usr/share/glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-key 阅读全文
posted @ 2020-09-22 17:18 刘大侠GG_B 阅读(328) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> int i = 1; struct Test { private: int i; public: int j; int getI() { i = 3; return i; } }; int main() { int i = 2; Test test; test. 阅读全文
posted @ 2020-09-21 17:50 刘大侠GG_B 阅读(180) 评论(0) 推荐(0) 编辑
摘要: `#include<stdio.h> int main(){ const int x = 1;//x是真正意义上的常量 x进入了符号表 //C++编译器会为const常量分配内存空间,但是没有使用,要想使用这个空间,可以使用指针或者是引用 const int& rx = x;//rx是只读变量,不能 阅读全文
posted @ 2020-09-21 09:45 刘大侠GG_B 阅读(501) 评论(0) 推荐(0) 编辑
摘要: #!/bin/sh set -x BASEDIR=$(dirname $0) FILE=$BASEDIR/failed.txt echo "$BASEDIR/$1" rpmbuild -ba $BASEDIR/$1 2> $FILE ERNR=$(awk '$1 == "error:"{print 阅读全文
posted @ 2020-09-07 15:28 刘大侠GG_B 阅读(419) 评论(0) 推荐(0) 编辑
摘要: 好用工具简介 🐎gnome-boxes linux下面的虚拟机工具。 阅读全文
posted @ 2020-09-03 14:23 刘大侠GG_B 阅读(65) 评论(0) 推荐(0) 编辑
摘要: // gen generates integers in a separate goroutine and // sends them to the returned channel. // The callers of gen need to cancel the context once // 阅读全文
posted @ 2020-08-26 10:57 刘大侠GG_B 阅读(175) 评论(0) 推荐(0) 编辑
摘要: // gen generates integers in a separate goroutine and // sends them to the returned channel. // The callers of gen need to cancel the context once // 阅读全文
posted @ 2020-08-26 10:48 刘大侠GG_B 阅读(128) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页