- 博客(3)
- 收藏
- 关注
原创 socket文件传输,可以实现传输不同大小的文件(单个)
//服务端 #include <stdio.h> #include <sys/types.h> /* See NOTES */ #include <sys/socket.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <unistd.h> #inc
2021-08-01 23:24:41 245
原创 简单脚本-
创建一个脚本文件 text.sh 给text.sh加上权限 两种方式 sh text.sh |tee log.txt //运行时 窗口显示运行状态 ./text.sh >>logfile 2>&1 // 运行时,窗口不显示运行状态
2021-07-03 11:04:05 71
原创 贪吃蛇c版
#include<curses.h> #include<stdlib.h> #include<unistd.h> #include<pthread.h> #define UP 1 #define DOWN -1 #define RIGHT 2 #define LEFT -2 struct snack { int heng; int shu; struct snack *next; }; struct snack *head=NULL;
2021-06-05 17:28:03 71
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人