会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
挨踢淫才
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2017年3月
vsftpd配置
摘要: 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 挨踢淫才
阅读(118)
评论(0)
推荐(0)
2017年1月
linux命令整理
摘要: 1.) 显示文件夹下各个文件大小(包含目录和文件) du -hs * 2.) shell校验日期格式有效性
阅读全文
posted @ 2017-01-23 10:13 挨踢淫才
阅读(144)
评论(0)
推荐(0)
2016年10月
BCD与十进制转换
摘要: 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 挨踢淫才
阅读(804)
评论(0)
推荐(0)
2016年8月
字节对齐
摘要: vc环境: 结构的首地址必须是结构内最宽类型的整数倍地址; 另外,结构体的每一个成员起始地址必须是自身类型大小的整数倍 ( 需要特别注意的是windows下是这样的,但在linux的gcc编译器下最高为4字节对齐) gcc、vc设置紧缩结构 #pragma pack(push, 1) typedef
阅读全文
posted @ 2016-08-03 14:32 挨踢淫才
阅读(126)
评论(0)
推荐(0)
2016年3月
信号量、Windows事件实现线程同步
摘要: 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 挨踢淫才
阅读(588)
评论(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 挨踢淫才
阅读(445)
评论(0)
推荐(0)
stringstream
摘要: 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 挨踢淫才
阅读(129)
评论(0)
推荐(0)
2016年2月
epoll案例
摘要: 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 挨踢淫才
阅读(299)
评论(0)
推荐(0)
poll案例
摘要: 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 挨踢淫才
阅读(288)
评论(0)
推荐(0)
2015年5月
java学习笔记
摘要: 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 挨踢淫才
阅读(232)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告