i wanna make a callLog with struct in C# so i remember in C we had such a thing:
struct contact
{
string name;
string phone;
}contact_q[200]
and for filling the contacts's information we had such a thing:
while(i<200)
{
scanf("%s",student_q[i].name)
}
so in C# we don't have that declaration:"contact-q[200]" at the end of struct and i could not handle a loop for filling name and phone because we don't have such a thing:
for (int i = 0; i < 10; i++)
{
Contacts contact[i]=new Contacts();
}
it has error with : contact[i]
so help me