TA貢獻1784條經驗 獲得超8個贊
C++ Primer Plus 電子書里用的是:void restore(format f, precis p){cout.set(f,std::ios_base::floatfield);cout.precision(p);}--restore 的意思是恢復某種狀態,這里是設置輸出格式和精度。格式和精度是參數,你要恢復到哪種狀態,你的實參就用你想要的值便可
TA貢獻1797條經驗 獲得超4個贊
這應當是自定義函數,C++ Primer Plus 電子書里用的是:void restore(format f, precis p){cout.set(f,std::ios_base::floatfield);cout.precision(p);}--restore 的意思是恢復某種狀態,這里是設置輸出格式和精度。格式和精度是參數,你要恢復到哪種狀態,你的實參就用你想要的值便可。
剖析 React 內部運行機制
¥ 58.00
舉報
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號