It compiled and ran fine for me...
But just to check, since you're making a carbon application, you must also include <Carbon/Carbon.h>
So this:
#include <Carbon/Carbon.h>
#include <stdio.h>
int main()
{
int vName,
vAge,
vHometown;
{
printf( "Please enter your name: " );
scanf( "%s", &vName );
fpurge( stdin );
printf( "Enter your age: " );
scanf( "%d", &vAge );
fpurge(stdin );
printf( "Enter your Hometown: " );
scanf( "%s", &vHometown );
fpurge( stdin );
printf( " Hello %s from %s at the age of %d. ",
vName, vHometown, vAge );
}
return 0;
}
Compiled and ran this:
You just need to include the carbon precompiler directive.
