okay so straight out, i need my arrays and their size integer variable to be global functions, but my compiler isn't accepting it. i use dev c++. so what do i do?
Code:
#include<iostream.h>
using namespace std;
int size;
char Field[size][size];
char Ground[size][size];
void Diff()
{
char ch;
cout<<"Please select a level of Difficulty:"<<endl;
cout<<"E.Easy"<<endl;
cout<<"M.Medium"<<endl;
cout<<"D.Difficulty"<<endl;
cout<<endl<<"Choice:";
cin>>ch;
if(ch=='E') size=9;
if(ch=='M') size=17;
if(ch=='D') size=25;
}
that's the code