Seems odd the extra hoops I have to jump through to use boolean. Can anybody help me figure out what's wrong here?
Code:
#include <stdio.h>
#define TRUE 1
#define FALSE 0
typedef int boolean;
struct student
{
int cnt;
};
main()
{
boolean continue = TRUE;
int option = 0;
do
{
printf("Select an option:\n\t1. View All Students\n");
scanf("%d", &option);
printf("Option: %d", option);
} while (continue == TRUE);
/* Ignore everything below this */
struct student *s;
s->cnt = 10;
printf("%d\n", s->cnt);
}
I'm getting "parse error before 'continue'" twice and I'm not really sure why...