Split
-
파일 C에서 읽는 동안 이상한 문자카테고리 없음 2020. 8. 12. 16:39
질문 inv.txt 파일에서 읽을 때 처음에 이상한 문자가 계속 표시됩니다. 나는 잠시 동안 봤지만 해결책을 찾을 수 없습니다. 아래는 내 코드와 파일의 내용입니다. void installDataToInventory(string fileName) { // Open file to read data std::ifstream myFile; myFile.open(fileName); // Continue if file is open if (myFile.is_open()) { std::string line; // initial count to for putting book info // to approriate slot of inventory array int count = 0; // Loop through the..