摘要:
du -m smallgame_2006* | awk '{sum += $1};END{print sum}'-m代表单位是MB,awk命令需要'',且命令需换行 阅读全文
posted @ 2013-07-03 21:12
vanishfan
阅读(1121)
评论(0)
推荐(0)
摘要:
1:当无法列出传递函数的所有实参的类型和数目时,可用省略号指定参数表void foo(...);voidfoo(parm_list,...);2:函数参数的传递原理函数参数是以数据结构:栈的形式存取,从右至左入栈.eg:#includevoid fun(int a, ...){int *temp =&a;temp++;for (int i = 0; i 中的例子#include "stdio.h"#include "stdlib.h"voidmyprintf(char* fmt, ...)//一个简单的类似于printf的实现,//参数必须都是i 阅读全文
posted @ 2013-07-03 21:05
vanishfan
阅读(239)
评论(0)
推荐(0)

浙公网安备 33010602011771号