How to translate C file pointers into generic C++ streams?

后端 未结 0 1829
忘了有多久
忘了有多久 2021-01-29 00:17

Consider the following C code:

void openFile(const char *mode, char *filename, FILE *fileptr)
{
  ...
  fileptr = fopen(filename, mode);
  ...
}

FILE *logstream;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题