Hi, sorry it might be stupid to post it but I need some help to track this syntax error, as I can't see it, I think there no error but compiler keeps telling :
Code:
.c(27) : error C2143: syntax error : missing ')' before ';'
.c(27) : error C2059: syntax error : ')'
.c(70) : error C2143: syntax error : missing ')' before ';'
.c(70) : error C2059: syntax error : ')'
and this two functions where I'm having those errors
First:
Code:
void get_weight(void)
{
for(i=0;i<num_packages;++i)
{
printf("Enter Weight for package#%i: \n", i);
scanf_s("%i", &weight);
t_weight+=weight;
if(t_weight>max_weight)
printf("Overload, packages can't be picked up");
--num_packages;
}
}
Second:
Code:
void print_reciept(void )
{
printf("\tShipping Receipt\n");
printf("\t\tDate: %i/%i/%i\n",month,date,year);
printf("Customer#: %i\n",customer);
printf("No. of Packages: %i\n",num_packages);
printf("\nDeliver Distance: %i\n",distance);
printf("\nTotal Weight: %i\n",weight);
printf("\nShipping Charge: %i\n",charge);
}
Thank you.