Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

c/c++補零的問題~

0 views
Skip to first unread message

希望是動詞

unread,
Oct 3, 1998, 3:00:00 AM10/3/98
to

c時:

如果 輸出時 printf("04%d",a) //就會輸出四位數,不足補零
那 scanf 時輸入四數存入 array[4]時如何不足前面補零

還有c++時:
用 cout及 cin時
如何同上面限定位數不足補零呢
謝謝~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
mailto:li...@ms1.pclan.com.tw


0 new messages