摘要:
sscanf与scanf类似,都是用于输入的,只是后者以屏幕(stdin)为输入源,前者以固定字符串为输入源。函数原型:int scanf( const char *format [,argument]... );其中的format可以是一个或多个:{%[*] [width] [{h|l|I64|L}] type|'_'|'\t'|'\n'|非%符号},注:{a|b|c}表示a,b,c中选一,[d],表示可以有d也可以没有d。² width:宽度,一般可以忽略,用法如:const char sourceStr[] = "hel 阅读全文
posted @ 2011-04-13 19:06
hnrainll
阅读(1194)
评论(0)
推荐(0)
摘要:
http://www.ibm.com/developerworks/cn/IBM developworks有很多很经典的资料 阅读全文
posted @ 2011-04-13 17:22
hnrainll
阅读(440)
评论(0)
推荐(0)