How can I create the map size,
#include <iostream>
#include <fstream>
#include<string>
using std::ifstream;
bool msize(int Height,int Width){
//add code
return true;
}
bool draw_map(char* Filename,int Width,int Height){
if(Width<1||Height<1)
return false;
msize(Height,Width);
ifstream file;
file.open(Filename);
if(file.is_open()){
while(!file.eof()){
for(int x=0;x<Height;x++){
for(int y=0;y<Width;y++){
if(c!=']'){
file >> map[x][y];
file.get(c);
}else
map[x][y] = -1;
}
}
}
file.close();
}
return true;
}