2011年7月12日
摘要: 源自《The C Programming Language》P102 pr5-11: 修改程序entab和detab(第一章练习中编写的函数),使它们接受一组作为参数的制表符停止位。如果启动程序时不带参数, 则使用默认的制表符停止位设置。 代码: #include <stdio.h>#include <stdlib.h>#define TABINC 8int main(int argc, char* argv[]){ int c; int pos; int nb; int tab_inc; pos = 1; nb = 0; if(argc == 1) tab_inc = 阅读全文
posted @ 2011-07-12 17:12 将军之盾 阅读(457) 评论(0) 推荐(0) 编辑