引用:
Originally posted by 上善若水
as i can remember...
if you are using "iomanip.h" then
you are using OLD version of standard library
if you use "iomanip" then it includes new standard library,
that extensively uses namespace
and all basic functions/objects are under namespace "std"
that's why you need "using namespace std;"
which make namespace "std" as default namespace
to avoid typing std.xxx all the time
integer, long short are for INTEGERS, eg. 1, -5, 29, 888
float, single, double are for real numbers, e.g -22.59301, 0.2593958
check reference manual for details
p.s.
if you still don't get it, email me if you want
sorry I can't type chinese right now
but i can type chinese at home if necessary
|
--------------------------------------------------------------
首先非常感謝您的答覆唷
您應該是在國外吧
我不知道您是臺灣的留學生還是土生土長的外國華人
我先用中文跟您溝通,若您閱讀或打中文有困難
我們再來用英語,因為畢竟我太久沒碰英文了,ok?
Thanks for your reply.
I guess you're not in Taiwan now.
I don't know how much you understand Chinese.
Please tell me if you really have trouble in reading or typing Chinese.
This I still talk to you in Chinese,ok?
如果我沒翻譯錯的話
iomanip加入了許多新的標準函式庫
有別於舊的iomanip.h
而使用"using namespace std"
只是為了避免任何時候都要打上std.xxx的麻煩是嗎?
既然VC++使用了很多的stand library,那是不是代表
不管什麼樣的程式
開頭一定要加入" using namespace std; "這一行呢?
再次感謝您的說明唷