reading hex values from fstream into int

前端 未结 4 1394
南笙
南笙 2020-12-22 01:39

I have a text file which has one hex value in each line. Something like

80000000
08000000
0a000000

Now i am writing a c++ code to read this

4条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-22 02:15

    As mentioned, extracting whitespace manually in the code you've shown is unnecessary. However, if you do come across a need for this in the future, you can do so with the std::ws manipulator.

提交回复
热议问题