Parsing
-
파일 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..
-
Flutter에서 List 안의 List를 어떻게 파싱할 수 있습니까?카테고리 없음 2020. 8. 12. 16:34
질문 "indice"를 파싱할 수 있지만 "capitulos"를 파싱할 수 있기 때문에이 json을 파싱하는 데에 문제가 있습니다. 오류가 발생합니다. 예외가 발생했습니다. _TypeError ( 'String'유형은 'Map'유형의 하위 유형이 아님)목록 안의 목록을 어떻게 파싱할 수 있습니까? 나는 Pooja Bhaumik의 훌륭한 기사를 읽었지만 id는이 예를 숨기지 않습니다. [ { "id": "1", "title": "title", "origem": "origin", "tipo": "type", "indice": [ { "id": 1, "title": "title 1" }, { "id": 2, "title": "title 2" }, ], "capitulos": [ [ "chapter 1 text..