I am a beginner at C++ and would be very grateful if someone could simply tell me why my program will not compile.
My program is as follows,
#include <stdio.h>
#define int 1ST VALUE = 23.0
void main()
{
float 2nd_value;
int 3rd_value, result:
printf("Enter a value:");
scanf("%c", 2nd_value;
result=(1ST_VAL UE+2nd_value)/3rd_value);
}
The only error is,
c(5,5): Declaration syntax error
I will be extremely grateful of any help, thank you.
My program is as follows,
#include <stdio.h>
#define int 1ST VALUE = 23.0
void main()
{
float 2nd_value;
int 3rd_value, result:
printf("Enter a value:");
scanf("%c", 2nd_value;
result=(1ST_VAL UE+2nd_value)/3rd_value);
}
The only error is,
c(5,5): Declaration syntax error
I will be extremely grateful of any help, thank you.
Comment