Im trying to call a bool function called birth(int x, int d, int &v) in main. the function is in a class called GridWorld. Im havin trouble calling it.
int main(){
int row,col;
cout<<"Enter grid size"<<endl;
int dist_row,dist_col;
int a =0;
cin>> row>>col;
GridWorld(row,col);
cout<<"Enter District"<<endl;
cin>>dist_row>>dist_col;
GridWorld firstWorld;
firstWorld.birth(dist_row, dist_col,a);