The error I'm getting says "Cannot Implicitly convert type 'int' to 'int[]'
Here's the code.
|
|
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Bryian TanPosted Dec 3, 2010, 9:39 PM
intArray is type Array, and 100 is type int. I'm not sure what you trying to do, but you can try something like this.
int[] intArray = new int[26];
for (int i = 0; i < 26; i++)
{
intArray[i] = 100; //This is where it says the problem is.
}