随笔分类 -  c

摘要:LINUX readline 库的使用,,编译代码时必须链接libreadline 与libtermcap基只有前者,,将会有如下的链接失败/usr/lib/libreadline.so: undefined reference to `tgetnum': /usr/lib/libreadline.so: undefined reference to `tgoto': /usr/lib/libreadline.so: undefined reference to `tgetflag': /usr/lib/libreadline.so: undefined referen 阅读全文
posted @ 2014-01-20 13:59 leegooy 阅读(5713) 评论(0) 推荐(0)
摘要:clientglobalextern.h:31: 错误:为形参 ‘SVS_CLI_CONTEXT’ 指定了存储类ksvs_client.c:40: 错误:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token 刚才是不是 在头文件声明了个函数最后没加‘;’ 阅读全文
posted @ 2013-12-27 09:58 leegooy 阅读(1126) 评论(0) 推荐(0)
摘要:window是下的 __int64 f1; printf ("%I64d\n", f1);/*我直接把%I64d改成%Ild了,那是I,不是l !*/ 阅读全文
posted @ 2013-12-18 17:20 leegooy 阅读(136) 评论(0) 推荐(0)
摘要:warning: backslash and newline separated by space [enabled by default]’\‘ 后面多一个空格 注意编辑器的颜色 阅读全文
posted @ 2013-12-09 10:24 leegooy 阅读(1253) 评论(0) 推荐(0)
摘要:#ifndef __HAVE_ARCH_STRSPN/** * strspn - Calculate the length of the initial substring of @s which only contain letters in @accept * @s: The string to be searched * @accept: The string to search for */ size_t strspn(const char *s, const char *accept) { const char *p; const char *a; size_... 阅读全文
posted @ 2013-11-20 15:21 leegooy 阅读(296) 评论(0) 推荐(0)
摘要:#include #include #define M 999int main(){ double benjin = 0.0; double lilv = 0.0; double yue_lilv = 0.0; int nianxian = 0; double benxi_a = 0.0; double lixi_a = 0.0; double benjin_yihuan[M] = {0.0}; /*第i个月已还本金*/ double benjin_yu[M] = {0.0}; ... 阅读全文
posted @ 2013-11-01 14:44 leegooy 阅读(215) 评论(0) 推荐(0)
摘要:This GDB was configured as "i686-linux-gnu". 32位的gdb 系统是64的sudo apt-get install gdb正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成 将会安装下列额外的软件包: libc6-dbg建议安装的软件包: gdb-doc gdbserver推荐安装的软件包: libc-dbg下列软件包将被【卸载】: gdb:i386下列【新】软件包将被安装: gdb libc6-dbg升级了 0 个软件包,新安装了 2 个软件包,要卸载 1 个软件包,有 0 个软... 阅读全文
posted @ 2013-11-01 10:08 leegooy 阅读(5400) 评论(0) 推荐(0)
摘要:^数学中表示乘方运算 (x^y: x的y次方)c语言中^表示位运算按位异或 阅读全文
posted @ 2013-10-30 16:57 leegooy 阅读(174) 评论(0) 推荐(0)
摘要:printf("剩余本金%.2lf\n", benjin - benjin / yue_a * i);printf("剩余本金%.2lf\n", benjin * (1 - 1 / yue_a * i)); /*这不是数学除法*/#include #define M 999int main(){ double benjin = 0.0; double lilv = 0.0; double nianxian = 0.0; double benxi_a = 0.0; double lixi_a = 0.0; int... 阅读全文
posted @ 2013-10-30 16:09 leegooy 阅读(618) 评论(0) 推荐(0)