2016年3月31日

linux c 验证登录密码

摘要: 1 #define _XOPEN_SOURCE 2 #include 3 #include 4 5 int main(int argc, char *argv[]) 6 { 7 unsigned char *md = NULL; 8 9 md = crypt("password", "salt"); 10 printf("%s\n", m... 阅读全文

posted @ 2016-03-31 16:49 埋头数月亮 阅读(320) 评论(0) 推荐(0) 编辑

linux c 打印彩色字符

摘要: \033[0m 表示恢复默认 阅读全文

posted @ 2016-03-31 16:17 埋头数月亮 阅读(277) 评论(0) 推荐(0) 编辑

2016年3月30日

linux c 实现大数相乘

摘要: 实现了任意大数与 2^64-1以下的数相乘, 两个任意大数可以将其中一个拆分成多个因子, 两个大数质数暂未考虑 阅读全文

posted @ 2016-03-30 15:13 埋头数月亮 阅读(321) 评论(0) 推荐(0) 编辑

linux c 分解质因数

摘要: 实现了2^64-1以下数字的求质因数, 编译时报错undefined reference to `sqrt' man了下 发现编译时要加-lm 阅读全文

posted @ 2016-03-30 13:26 埋头数月亮 阅读(318) 评论(0) 推荐(0) 编辑

2016年3月23日

编译报错GLIBCXX_3.4.15 clock_gettime@@GLIBC_2.2

摘要: GLIBCXX_3.4.15 升级gcc,g++编译器 clock_gettime@@GLIBC_2.2 链接库时加-lrt 阅读全文

posted @ 2016-03-23 17:41 埋头数月亮 阅读(218) 评论(0) 推荐(0) 编辑

ubuntu10.04搭建嵌入式开发环境

摘要: 改源 配置vim sudo vim /etc/vim/vimrc set number set autoindent set smartindent set tabstop=4 set incsearch 安装g++ 配置samba 1.先安装程序包 sudo apt-get install sam 阅读全文

posted @ 2016-03-23 17:36 埋头数月亮 阅读(193) 评论(0) 推荐(0) 编辑

导航