#define OLC_PGE_APPLICATION #include "pixelGameEngine.h" #include "olcutils.h" #include "List.h" using namespace olc; int main() { std::ifstream file("input"); while (file.good()){ std::string line; std::getline(file,line); List*startingList=new List(); List*currentList=nullptr; if (line.length()>0){ for (int i=0;iparent=currentList; currentList->elements.push_back(el); currentList=el.list; } } else if (line[i]==']'){ //std::cout<<"Read "<parent; } else if (line[i]==','){ //std::cout<<"Read "<='0'&&line[i]<='9'){ //std::cout<<"Read "<elements.push_back(el); i--; } } std::cout<