会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
rldts
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
21
22
23
24
25
26
27
28
29
···
47
下一页
2014年10月23日
C语言使用正则
摘要: http://see.xidian.edu.cn/cpp/html/1428.html
阅读全文
posted @ 2014-10-23 09:50 rldts
阅读(171)
评论(0)
推荐(0)
2014年10月22日
code::blocks怎么设置命令行参数
摘要: Project->SetProgram'sArguments...然后在相应的输入框中输入命令行参数
阅读全文
posted @ 2014-10-22 21:52 rldts
阅读(1292)
评论(0)
推荐(0)
2014年10月11日
喜闻乐见的const int *p、int* const p、const int* const p
摘要: 不废话直接代码示例: 1 void f(const int *p) { 2 3 int b = 10; 4 5 *p = 10; // error 6 7 p = &b; // fine 8 9 }10 11 void f(int* const p) {12 13 ...
阅读全文
posted @ 2014-10-11 15:45 rldts
阅读(230)
评论(0)
推荐(0)
2014年10月8日
codeblocks如何watch指针
摘要: 如果这个指针是指向一个一维数组,那么在watch窗口中右击并选择Dereference,会看到数组的第一个元素如果这个指针是指向一个struct,那么在watch窗口中右击并选择Dereference,就能够看到该struct的内部结构比如Debug如下代码,可以试试 1 typedef struc...
阅读全文
posted @ 2014-10-08 21:55 rldts
阅读(1271)
评论(0)
推荐(0)
codeblocks如何watch数组
摘要: codeblocks13.12+GDB调试的时候,main传了一个int a[10]给quicksort但是在quicksort内部,debugger把a看成一个pointer而不是array,所以watch窗口如下,看不到a的元素找了半天资料,后来还是自己摸索,新添加一个变量a,右击a,选择pro...
阅读全文
posted @ 2014-10-08 21:26 rldts
阅读(4467)
评论(0)
推荐(2)
2014年10月7日
printf不支持%lf
摘要: 1 #include 2 3 int square137(int n); 4 5 void p137() { 6 double x = 3.0; 7 int y = (int)x; 8 printf("Square of %f is %d\n", x, square1...
阅读全文
posted @ 2014-10-07 23:27 rldts
阅读(414)
评论(0)
推荐(0)
doxygen可以生成C/C++代码的文档(根据注释)
摘要: 类似这样的注释(目前还没用到,先写一个笔记在这,免得忘了)就像java的注释生成html文档一样
阅读全文
posted @ 2014-10-07 23:07 rldts
阅读(333)
评论(0)
推荐(0)
2014年10月2日
codeblocks中右键源文件没有Rename选项?
摘要: 那是因为你右击的那个文件已经被CB的编辑器打开,关闭即可,你就能看到Rename选项了。或者更简单,翻到Files那一栏,然后右击某个文件夹选择"Make root"即可,就跟windows下的文件系统一样,可以增删改查文件/文件夹如图
阅读全文
posted @ 2014-10-02 01:39 rldts
阅读(736)
评论(0)
推荐(0)
codeblocks中给GCC编译器加参数
摘要: 在使用gcc命令行编译的时候可以使用gcc xxx.c -o xxx.exe -std=c99来使用c99标准编译但是在codeblocks中默认是不使用c99标准编译的,如何加参数呢?Settings>Compiler>Other options>写上如下参数-std=c99如果想多加几个参数,分...
阅读全文
posted @ 2014-10-02 01:31 rldts
阅读(2863)
评论(0)
推荐(0)
2014年10月1日
codeblocks设置当前行高亮
摘要: 默认是不开启当前行高亮的。如果想打开,选择:Settings>Editor>Editor Settings>Other options> 勾选Highlight line under caret
阅读全文
posted @ 2014-10-01 12:16 rldts
阅读(1181)
评论(0)
推荐(0)
上一页
1
···
21
22
23
24
25
26
27
28
29
···
47
下一页
公告