ok here is the code i got
the problem is well alot of things i think... the file is initialised szMap[37][37]; and the length of the first and only line in map2.txt is 37 characters long and x and y are set to 0 for the time being... besides wondering how to fix the compile errors would this work? and how would i load sayCode:fin.open("map2.txt"); while(!fin.eof()); { fin >> szMap[x][y]; cout<<szMap[x][y]<<endl; }
xxxxx
xxxxx
xxxxx
into array szMap[][] from a file? because the example i have posted only loads one line (that im aware of)
thx for any and all help