上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 1.) yum install -y vsftpd 2.) useradd -g ftp -s /sbin/nologin afcupload (默认生成/home/afcupload, 可使用 -d参数自定义主目录生成位置) 3.) passwd afcupload 4.) chgrp -R ft 阅读全文
posted @ 2017-03-31 18:57 挨踢淫才 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.) 显示文件夹下各个文件大小(包含目录和文件) du -hs * 2.) shell校验日期格式有效性 阅读全文
posted @ 2017-01-23 10:13 挨踢淫才 阅读(137) 评论(0) 推荐(0) 编辑
摘要: static unsigned char bcd_decimal(unsigned char bcd){return bcd-(bcd >> 4)*6;} static unsigned char decimal_bcd(unsigned char decimal){return (unsigned 阅读全文
posted @ 2016-10-12 14:41 挨踢淫才 阅读(788) 评论(0) 推荐(0) 编辑
摘要: vc环境: 结构的首地址必须是结构内最宽类型的整数倍地址; 另外,结构体的每一个成员起始地址必须是自身类型大小的整数倍 ( 需要特别注意的是windows下是这样的,但在linux的gcc编译器下最高为4字节对齐) gcc、vc设置紧缩结构 #pragma pack(push, 1) typedef 阅读全文
posted @ 2016-08-03 14:32 挨踢淫才 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 HANDLE sem_add, sem_subtract; 8 9 int val(0); 10 11 unsigned int __stdcall add(void* lpa) 12 { 13 printf("add\n"); 14... 阅读全文
posted @ 2016-03-25 01:12 挨踢淫才 阅读(581) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <stdio.h> 3 #include <sstream> 4 5 using namespace std; 6 7 int main(int argc, char **argv) 8 { 9 int ret(0); 10 11 s 阅读全文
posted @ 2016-03-08 16:14 挨踢淫才 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <sstream> 3 4 using namespace std; 5 6 int main(int argc, char **argv) 7 { 8 string line; 9 while (getline(cin, line) 阅读全文
posted @ 2016-03-08 14:13 挨踢淫才 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 #include <string.h> 3 #include <errno.h> 4 5 #include <iostream> 6 7 #include <sys/socket.h> 8 #include <netdb.h> 9 #include <a 阅读全文
posted @ 2016-02-04 14:47 挨踢淫才 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <sstream> 3 #include <map> 4 5 #include <stdio.h> 6 #include <errno.h> 7 #include <string.h> 8 9 #include <sys/socket 阅读全文
posted @ 2016-02-01 10:24 挨踢淫才 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1 class A 2 { 3 public static final int VAL = 3; // 不会导致A被加载 4 static 5 { 6 System.out.println("load A"); 7 } 8 public A(... 阅读全文
posted @ 2015-05-27 22:37 挨踢淫才 阅读(227) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 9 下一页