The error I'm getting says "Cannot Implicitly convert type 'int' to 'int[]'
Here's the code.
Python |
Python |
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Bryian TanRank #396 · 6.3K reputationPosted Dec 3, 2010, 4:39 PM EST
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.
}