Hi there, so im trying to get something done for my class. Im supposed to implement something where you can enter details of a person, validate them, then store them as a array, and allow you to add more later. What I dont understand is how to store a group of variables (ie. Name, phone number, postcode) in one array and when another record is added, simply add it on, without erasing the contents of the previous record.
I hope ive asked this in the correct place. Was just hoping for a bit of help, as all tutorials oh the internet only seem to cover entering pre-made data into arrays.
Jump to Post
[QUOTE=elliot81;1226144]Thanks for the tip, but for this we have been told specifically to use arrays rather then lists. Would you mind posting the array equivalent? :)[/QUOTE]
static void Main(string args)
int select = 0;
const int MAX_PEOPLE=10;
stringpeople = new string[MAX_PEOPLE];
int count = 0;
while (select …
All 13 Replies
We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.