摘要:
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal.Solution:void putlong(unsigned long n){ if( n<10) { putchar(n%10+'0'); } else { putlong(n/10); putchar(n%10+'0'); } } For exa... 阅读全文
posted @ 2013-06-26 03:23
pgu2
阅读(161)
评论(0)
推荐(0)
浙公网安备 33010602011771号