Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
bashmentgyal
I am asking for assistance with an assignment using STRUCT. Can anyone explain using basic illustrations.?
I am writing an assignment in modules, with functions doing different things I know this much:
#include <stdio.h>
struct players
{
char name[10]; /*player name, max 10 characters*/
char address[20];
int age;
int SSN;
};
void main()
here I want to call the functions:
struct players get_info()
data_verify()
return;
}
These r the functions:
struct players info() /*declaration of a function */
{
int i;
for (i=0; i < 5; i++)
printf ( "Enter your name:");
scanf ( "%s", info[i].name); ----> is this correct?
printf ( "Enter your Address :");
scanf ( "%19s", players[i].address);
printf( "Enter your age:" );
scanf ( " %d", &info[i].age);
printf ( "Enter your TRN:" );
scanf ( "%d ",&info[i].TRN);
return;
}
data verify()
{blah, blah
return;
};
how to call the functions in main? get the info from 5 users?use the info to verify the users, against the SSN database, to select 3 players. thank
1 AnswerProgramming & Design1 decade agoWhat type of exercises should I do?
I dont want to lose weight, I just want to tone my body (butt), it's a little loose (it runs in the family)...should I buy a machine, if so which one.
4 AnswersDiet & Fitness1 decade agoWhat type of exercises should I do?
I dont want to lose weight, I just want to tone my body (butt), it's a little loose (it runs in the family)...should I buy a machine, if so which one.
5 AnswersDiet & Fitness1 decade ago