摘要: 系统基本操作: 打开终端: ctrl + alt + t~ : 家目录, 用户的工作目录, /home/linux/ / : 根目录 ls : 查看目录下内容 ls : 查看的是命令执行的路径下的内容 ls 路径名 : 查看的是路径名下的内容 ls -a : 查看所有文件(包括隐藏文件) 隐藏文件: 阅读全文
posted @ 2023-04-21 22:39 不是不想赢而是看淡了 阅读(21) 评论(0) 推荐(0)
摘要: 函数指针 #include<stdio.h> void(*fun(void (*)(int),int))(int); //void(*)(int) fun(void(*)(int), int); void fun1(int a); int main(int argc, const char *arg 阅读全文
posted @ 2023-04-16 22:33 不是不想赢而是看淡了 阅读(21) 评论(0) 推荐(0)
摘要: #include <linux/kernel.h> #include <linux/module.h> #include <linux/cdev.h> #include <linux/fs.h> #define HELLO_MAJOR 250 #define HELLO_MINOR 0 #defin 阅读全文
posted @ 2023-04-15 10:07 不是不想赢而是看淡了 阅读(33) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 void sort1(int s[]) 3 { 4 int i,j,t; 5 for(i=0;i<9;i++) 6 { 7 for(j=0;j<10;j++) 8 { 9 if(s[j]>s[j+1]) 10 { 11 t=s[j];s[j]=s[j+1 阅读全文
posted @ 2023-04-09 23:03 不是不想赢而是看淡了 阅读(15) 评论(0) 推荐(0)