- 博客(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
306
原创 简单脚本-
创建一个脚本文件 text.sh给text.sh加上权限两种方式sh text.sh |tee log.txt //运行时 窗口显示运行状态./text.sh >>logfile 2>&1 // 运行时,窗口不显示运行状态
2021-07-03 11:04:05
113
原创 贪吃蛇c版
#include<curses.h>#include<stdlib.h>#include<unistd.h>#include<pthread.h>#define UP 1 #define DOWN -1#define RIGHT 2#define LEFT -2struct snack{ int heng; int shu; struct snack *next;};struct snack *head=NULL;
2021-06-05 17:28:03
108
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人