how can i use an array of string with an array of ints together(i use c#) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

how can i use an array of string with an array of ints together(i use c#)

i mean for declaration of name an age some people you need to have array of strings before array of ints for example:david 20 how can i put them together?

1st Aug 2017, 9:56 AM
Saeid
Saeid - avatar
2 Answers
+ 2
you can create a class that contains a person's age and name then make an array of the class like so https://code.sololearn.com/c397ToKQhS1B/?ref=app
1st Aug 2017, 10:31 AM
Jordan Chapman
Jordan Chapman - avatar
0
me too?
18th Jun 2018, 3:44 AM
Cáptáin Mosa
Cáptáin Mosa - avatar