实现一个简化的printf函数,能够处理%d,%f,%s,%c等格式。
/************************************************************************* > Created Time: 2014年06月17日 星期二 23时22分34秒 ************************************************************************/ #include<stdio.h> #include<stdarg.h> #include<stdlib.h> //输出普通的字符串 int printStr(char const *str) { int len = 0; while(*str != '