scanf on an istream object

前端 未结 3 2009
清歌不尽
清歌不尽 2020-11-29 08:45

NOTE: I\'ve seen the post What is the cin analougus of scanf formatted input? before asking the question and the post doesn\'t solve my problem here. The post seeks for C++-

3条回答
  •  醉梦人生
    2020-11-29 09:27

    Based on @tmyklebu's comment, I implemented streamScanf which wraps istream as FILE* via fopencookie: https://github.com/likan999/codejam/blob/master/Common/StreamScanf.cpp

提交回复
热议问题