我想从中转换
ifstream* ifs1 = storeManager.getMultiDataReaderStream();
至
ifstream& ifs1
我将如何做到这一点??
如何取消引用指针?使用解引用运算符:
ifstream& ifs1 = *storeManager.getMultiDataReaderStream();
^
使用解引用运算符:
ifstream& ifs1_reference = *ifs1;