从网页上copy了一份代码,格式很乱,突然间想到linux下好像有一个格式C代码的工具,搜索之,原来叫indent, 感觉很不错。 indent -npro -kr -i4 -ts8 -sob -l80 -ss -ncs fork.c