Code:
#define KIDS 3#define FAMILY "The Paytons"
#define MORTAGE_RATE 5.15
It's a saved .h file.
Then there is this code:
Code:
#include <stdio.h>#include <string.h>
#include "first.h"
main()
{
int age;
char childname[14] = "Thomas";
printf("\n%s have %d kids.\n", FAMILY, KIDS);
age= 11;
printf("The oldest, %s, is %d.\n", childname, age);
age = 6;
printf("The middle boy, %s, is %d.\n", childname, age);
age = 3;
strcpy(childname, "Ben");
printf("The youngest, %s, is %d.\n, childname, age);
return 0;
}
Code:
line 24: error: missing terminating " character
line 26: error: expected expression before 'return'
line 40: error: expected ';' before '}' token
Any help would be appreciated. Thanks!