摘要: 1 #include 2 3 //图元的类型 4 enum SHAPE_TYPE{ 5 RECT_TYPE = 0, 6 CIRCLE_TYPE = 1, 7 TRIANGLE_TYPE = 2, 8 SHAPE_NUM, 9 }; 10 //为了定义三角形的坐标而设 11 struct point{ 12 f... 阅读全文
posted @ 2017-11-08 14:57 子雅陌曦 阅读(316) 评论(0) 推荐(0) 编辑
摘要: 执行结果: momo@momo ~/myfile/mydev/cc % compare !2150请输入需要比较的数:1 2 8 9 21输入的数据个数是:5max=21min=1 阅读全文
posted @ 2017-11-06 14:52 子雅陌曦 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 执行: momo@momo:mydev/cc $ a.outpid[8675]^Ccatch the signal 2^Ccatch the signal 2^Ccatch the signal 2 阅读全文
posted @ 2017-10-30 16:04 子雅陌曦 阅读(2334) 评论(0) 推荐(0) 编辑
摘要: 后续考虑实现界面程序的改进。。。 阅读全文
posted @ 2017-10-27 16:32 子雅陌曦 阅读(14476) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 int main(int argc,char **argv) 6 { 7 time_t time_now; 8 struct tm *curr_time = NULL; 9 time(&time_now); 10 printf("time_now:[%ld]\n",... 阅读全文
posted @ 2017-10-26 17:28 子雅陌曦 阅读(1542) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 /**chartoasc:char -> ascii**/ 6 int chartoasc(char c) 7 { 8 int i=0; 9 i = c; 10 return i; 11 } 12 /**asctochar:ascii -> char**/... 阅读全文
posted @ 2017-10-26 10:13 子雅陌曦 阅读(735) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/python3 2 import os 3 import sys 4 def scan(path): 5 for x in os.listdir(path): 6 newpath = os.path.join(path,x) 7 if os.path.isdir(newpath): 8 sc... 阅读全文
posted @ 2017-10-24 17:03 子雅陌曦 阅读(282) 评论(0) 推荐(0) 编辑
摘要: 一:客户端程序 1、头文件:unp.h 2、客户端主程序:clien.c 3、客户端包裹函数:pack.c 4、客户端功能行函数:func.c 5、客户端Makefile 二:服务器程序 1、头文件:unp.h 2、服务器主程序:serv.c 3、包裹函数:pack.c 4、功能性函数:func.c 阅读全文
posted @ 2017-10-24 09:37 子雅陌曦 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 以上代码中有个问题待解决,在11行输出的文件名并未在12行中全部写入list中,需要查一下问题出在哪 阅读全文
posted @ 2017-10-09 17:55 子雅陌曦 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: 1、进入http://community.wps.cn/download/下载wps-office安装包,我下载的是dep的包。 2、进行安装执行命令:sudo dpkg -i wps-office_10.1.0.5707-a21_amd64.deb 安装的时候报如下错: momo@momo:~/下 阅读全文
posted @ 2017-09-25 17:29 子雅陌曦 阅读(352) 评论(0) 推荐(0) 编辑