I'm a newbie to programming and am doing this project using linux and an error message keeps popping up and i've tried everything but cannot get it fixed and compiled. Please help, its due today!
Program is:
[code=c] /**
File name: Lab 03;
Name: George Michael;
Date: 3/21/08;
Purpose: To learn how to compile;
**/
#include<stdio. h>
{
(int my_age; /* users age */);
printf("wlcome to lab03, we will learn how to compile today \n");
printf("Enter your age: ");
scanf("%d";"&my _age");
Printf("your age is %d","\n,my_age" );
return0;
}[/code]
The error that keeps coming up is:
Lab03.c:13: error: expected identifier or '(' before '{' token
I've tried everything from looking at my syntax to adding "('' and semicolons everywhere, but nothing helped. Please help. Thank you very much.
Program is:
[code=c] /**
File name: Lab 03;
Name: George Michael;
Date: 3/21/08;
Purpose: To learn how to compile;
**/
#include<stdio. h>
{
(int my_age; /* users age */);
printf("wlcome to lab03, we will learn how to compile today \n");
printf("Enter your age: ");
scanf("%d";"&my _age");
Printf("your age is %d","\n,my_age" );
return0;
}[/code]
The error that keeps coming up is:
Lab03.c:13: error: expected identifier or '(' before '{' token
I've tried everything from looking at my syntax to adding "('' and semicolons everywhere, but nothing helped. Please help. Thank you very much.
Comment