![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
Flower-C
这个作者很懒,什么都没留下…
展开
-
linux,cpu利用率
#include <stdio.h>#include<stdlib.h>#define uint unsigned int#define N 20typedef struct{ char cpu[10]; uint user_t; uint nice_t; uint system_t; uint idel_t; uint iowait_t; uint irq_t; uint sirq_t;}CPU;struct sysinfo { long upt原创 2022-03-16 16:20:04 · 240 阅读 · 0 评论 -
去除字符串中的空格(C语言)
去除字符串中的空格(C语言)原创 2022-02-25 21:06:11 · 4602 阅读 · 0 评论 -
linux之shell编程:小程序
*1. 要求用户输入一个用户名,查询系统中是否存在该用户,若有打印用户存在,若不存在添加该用户**2. 用shell编程,将当前路径下的普通文件归档到hello.tar中,并且将归档的过程列出来**3. 用shell编程,for循环实现1到8的累加***4. 从终端输入你的成绩,必须在0-100之间,否则提示错误你必须输入0-100之间的数字,然后成绩在100-90,输出A,成绩为80-90,输出B,其他成绩都输出C原创 2022-02-24 10:07:09 · 1346 阅读 · 1 评论