摘要:
1 #include <stdio.h> 2 3 //int main(int argc, char **argv) 4 int main(int argc, char *argv[]) 5 { 6 for(int i = 0; i < argc; i++){ 7 printf("%dth O: % 阅读全文
摘要:
Linux下编程字体,我只用DejaVuSansMono,特点是: 1、0和oO能非常明显的区分开来了 2、1和i和l也能很容易区分了, 3、美中不足的是两个下划线都连接到一起了, 经过我的修改,终于好了,具体链接: https://pan.baidu.com/s/1-GApWLuUdabKK1Pk 阅读全文
摘要:
如果你像我一样,离不开Manjaro Linux,又想用腾讯会议,请看如下操作: 1、升级系统到最新 pacman -Syyu 2、安装安装软件的工具yay pacman -S yay 3、安装腾讯会议 yay -S wemeet 4、打开软件直接应用将就好。 这么看来,ManjaroLinux下安 阅读全文
摘要:
本学期为了更好在专业8号机房上课,配合机房的管理规定,机房机子不能存储任何文件,想到了用github,记录如下: 1、到github的网站创建自己的仓库dscom2020,其他的都默认,看清下面的说明 2、打开终端,切换到tmpCode目录,克隆仓库:git clone https://github 阅读全文
摘要:
代码test_Exit.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <unistd.h> 4 5 //简单输出fun1被调用的提示信息 6 void fun1(void){ 7 printf("[%s] is called...\n 阅读全文
摘要:
原来kde下有一个小玩具amor(线条人),可以一直在活动窗口上活动,很好玩的一个小东东。下面就以这个为例讲解下从github从从源码到程序的安装流程 1、下载源码: git clone https://github.com/KDE/amor.git,如果还没有git的同学,那就pacman -S 阅读全文
摘要:
代码很简单,testc.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <errno.h> 4 #include <string.h> 5 6 #define Numerous 0xFFFFFFFFFFFFFF 7 8 int main 阅读全文
摘要:
在C语言中,可应将任何的常量、字符床、符号用宏表示成另外一个名称,表示的形式多种多样,宏定义是在预处理过程中被实际的内容替换的。 一、无参数的宏 1.用宏定义定义数值常量,也叫无参数的宏 #define ArraySize 10 int arr[ArraySize] 2.用宏定义表达式,自动求出结果 阅读全文
摘要:
代码非常简单,不多少,list.h 1 #ifndef list_h 2 #define list_h 3 4 #include <stdlib.h> 5 #include <stdio.h> 6 7 #define MaxSize 10 8 9 typedef int DataType; 10 1 阅读全文
摘要:
如何每小时改变你的 Linux 桌面壁纸-Linuxeden开源社区 这个 shell 脚本 styli.sh 可以帮助你每小时自动改变你的 Linux 桌面壁纸,并且有几个选项。 用一张漂亮的壁纸来开始你的一天,你的桌面让人耳目一新。但寻找壁纸,然后保存,最终设置为壁纸,是非常麻烦的。所有这些步骤 阅读全文
摘要:
####使用自己裁剪的list.h头文件实现的linux内核链表 代码:list1.h 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _LINUX_LIST_H 3 #define _LINUX_LIST_H 4 5 //#include <l 阅读全文
摘要:
原文链接:https://www.jianshu.com/p/444789681e2a 查看系统版本,快捷键Win+R打开运行,输入winver,打开“关于Windows”,查看当前Windows10版本。 关于Windows 开启开发者选项 打开【开始】>【设置】>【更新和安全】>【开发者选项】> 阅读全文
摘要:
####背景 0.最近为了学习linux内核的数据结构,需要阅读linux内核,代码量比较大些,想起来几年前阅读android源码时的工具用来还算比较顺手,就想配置下接着继续来用。 1.软件的安装,略过linux和vim的安装,如果这些东西你都没有安装,或许这个博客你根本不需要看的, 具体就是lin 阅读全文
摘要:
代码:list.h 1 /* 2 * @file list.h 3 * @author PF 4 * @date 2017/05/1 5 * 6 * port from linux kernel list.h: https://github.com/torvalds/linux/raw/master 阅读全文
摘要:
代码如下: list.h中: /** 505 * list_entry - get the struct for this entry 506 * @ptr: the &struct list_head pointer. 507 * @type: the type of the struct thi 阅读全文