Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

user input to array object c#

for (int i = 0; i<24; i++) //just user the static array length
{
      myStudents[i].Number = Console.ReadLine();
      myStudents[i].Name = Console.ReadLine();
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #user #input #array #object
ADD COMMENT
Topic
Name
1+1 =