VC6不標準地方(1)
>#include <iostream.h>
>#include <iomanip.h>
上面這兩個都不是 C++標準頭檔.
標準的頭檔分別是 <iostream> 及 <iomanip>.
所有 C++ 標準函式庫的 identifiers 都是放在 std 這個 namespace 下的.
>#include <string.h>
這個是 C 的字串函式庫. 不是 std::string. std::string 的頭檔是 <string>.
>#include <iostream.h>
>#include <iomanip.h>
上面這兩個都不是 C++標準頭檔.
標準的頭檔分別是 <iostream> 及 <iomanip>.
所有 C++ 標準函式庫的 identifiers 都是放在 std 這個 namespace 下的.
>#include <string.h>
這個是 C 的字串函式庫. 不是 std::string. std::string 的頭檔是 <string>.