Previous: 12.6 Summary
Up: 12 Structures and Unions
Next: 12.8 Problems
Previous Page: 12.6 Summary
Next Page: 12.8 Problems
struct node {
int id;
int score;
}
#include <stdio.h>
main()
{ struct node *px, x, y;
px = &x;
while (scanf("%d %d", px.id, px.score) != EOF)
printf("%d %d\n", *px.id, *px.score);
}