Click here to Skip to main content
15,904,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
actually i wanted to store input value into an int array, but i am getting error that cannot implicitly convert int value int array
fallowing is code what have used
C#
int[][] newvalue = new int[3][];
         Console.WriteLine("enter new value ");
         newvalue = Console.Read();


please help me out
Posted
Updated 15-Dec-11 18:59pm
v2

1 solution

Try
C#
newvalue[0][0] = Console.Read();


You need to define the array elemnt that you want to define the new value to.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900