Re: [問題] 請想問 .h 問題
新的標準推薦使用命名空間。
第一種是在命名空間結構下對應的頭文件格式。
第二種是老的方式。
※ 引述《abzxcx (~飛~)》之銘言:
: 開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
: visual c++ 6.0
: 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
: 問題(Question):
: 各位前輩好
: 最近看書有看到 在 include 標頭檔的時候
: 1. #include <cstdlib>
: #include <cstdio>
: #include <cmath>
: 2. #include <stdlib.h>
: #include <stdio.h>
: #include <math.h>
: 我想問的是 1 跟 2 的詳細差別在哪裡
: 聽說 1 的寫法比較好 !?
: 餵入的資料(Input):
: 預期的正確結果(Expected Output):
: 錯誤結果(Wrong Output):
: 程式碼(Code):(請善用置底文網頁, 記得排版)
: 補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 147.243.236.28
推
02/09 10:57, , 1F
02/09 10:57, 1F
推
02/09 13:39, , 2F
02/09 13:39, 2F
→
02/09 13:40, , 3F
02/09 13:40, 3F
推
02/09 18:13, , 4F
02/09 18:13, 4F
→
02/09 22:56, , 5F
02/09 22:56, 5F
討論串 (同標題文章)