Maybe this is a silly question, but I want to declare a const array: So, I do this:
But always I received this error: a brace-enclosed initializer is not allowed here before '{' token for all 3 lines. Not matter what I change, I still cannot correct this. (Those line of code I have copied on TopCoder, and those line has successfully submit. But I don't know, when I run on my machine, It notices error)Code:string arr[]={"A","B","C"};
int dx[]={1,1,0,0};
int dy[]={0,0,1,1};
Who know this problem, help me please.
thanks :)