Sorry about that! I've just sorted most of the errors now i only have one. This what i have done so far.
It seems to be having a problem with my if statement.
ERRORS
Line 20: parse error before 'Login'
Line 22: parse error before 'else'
Code:
#include <stdio.h>
#include <math.h>
int user;
int main (void)
{
int log;
int reg;
unsigned char ans;
printf ("Press [L]ogin or [R]egistration");
scanf ("%c", ans);
{
f (ans=='l') or (ans=='L)
20: Login();
22: else if (ans=='r') or (ans=='R')
Registration();
else
printf("Invalid!\n");
}
}
Registration()
{
printf("");
}
Login()
{
printf ("Enter Login name:");
scanf ("%s", user);
}