[問題] ofstream的輸出方式
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
Dev-C++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
no
問題(Question):
因為在做壓縮方面題目,想請問各位先進
ofstream在寫出檔案時,是否與要輸出的資料相同
ex:
ofstream output;
若有int a;char b;
output<<a; //寫出的大小是與int一樣4byte嗎
output<<b; //寫出的大小是與char一樣的1byte嗎
補充說明(Supplement):
在此先感謝回答的先進
--
※ 發信站 :批踢踢實業坊(ptt.cc)
◆ From: 140.112.243.202
→
10/14 19:57, , 1F
10/14 19:57, 1F
→
10/14 19:58, , 2F
10/14 19:58, 2F
→
10/14 20:00, , 3F
10/14 20:00, 3F
→
10/14 20:06, , 4F
10/14 20:06, 4F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章