![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
annssdy
这个作者很懒,什么都没留下…
展开
-
eclipse c 环境搭建
mingw +eclipse 1.Launch failed.Bianry not found 2.A program file was not specified in the launch configuration原创 2014-09-22 19:42:19 · 436 阅读 · 0 评论 -
jni 学习
1)错误信息: LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏原创 2014-09-22 15:10:44 · 364 阅读 · 0 评论 -
八皇后问题
#include #define SIZE 8 unsigned int lines[SIZE]; unsigned int LINE_MAX = 1 << (SIZE - 1); void reset() { for (int i = 0; i < SIZE; ++i) { lines[i] = LINE_MAX; } } int moveNext() { for (int原创 2015-05-13 14:30:11 · 359 阅读 · 0 评论 -
汉明距
#include unsigned hamdis(unsigned x, unsigned y) { //considered as binary values, that is, as sequences of bits unsigned dist = 0, val = x ^ y; while(val){ ++dist; val &= val-1; } return di原创 2015-05-13 14:32:44 · 594 阅读 · 0 评论 -
C 学习笔记
float a char srt[10] &a 和 str都是地址 scanf()是读取单词 gets()读取字符串 缓冲: 完全缓冲 缓冲区满的时候才被清空,内容被发送到目的地 比如文件输入 行缓冲 遇到换行清空缓冲区 文件结尾: 文件尾部添加 Ctrl+Z 字符来标志结尾 系统存储文件大小 c getchar() 返回EOF #def原创 2015-05-15 16:04:40 · 311 阅读 · 0 评论