Hi, I am just starting out in programming but Ive encountered problems with Mac OS X Codewarrior. Even if I write things verbatim from lessons on this website it gives me multiple error messages and therefore does not let me run my programs.
For example I type this in:
#include <stdio.h>
int main()
{
int a, b, c;
printf("Enter the first value:");
scanf("%d", &a);
printf("Enter the second value:");
scanf("%d", &b);
c = a + b;
printf("%d + %d = %d\n", a, b, c);
return 0;
}
and I get this:
error: TRUE was not declared in this function
error: 'Execute' was not declared in this sope
error: expected ';' before 'all'
error: expected '}' at end of output
Can someone please help me out?