#include<stdio.h>
#include<string.h>
#define NUM 4
struct student
{
int rank;
char*name;
float score;
};
struct student stu []={3,"Tom",89.5,
4."Mary",76.5
1,"Jack",98.0
2,"Jim",92.0 };
void main()
{
char str[10];
int i;
do {
printf("Enter a name:");
}while(strcmp(str,"0")!=0);
}
#include<string.h>
#define NUM 4
struct student
{
int rank;
char*name;
float score;
};
struct student stu []={3,"Tom",89.5,
4."Mary",76.5
1,"Jack",98.0
2,"Jim",92.0 };
void main()
{
char str[10];
int i;
do {
printf("Enter a name:");
}while(strcmp(str,"0")!=0);
}
