void record_sale()
{
struct record_sale
{
char customername[25];
char item[20];
double price;
double payment;
}
/*Declaring variables*/
char customername[25];
char item[20];
double payment,price,Sales;
int userChoice = 0;
char sales[15];
最佳答案
在结构体 record_sale
的定义之后需要一个 ;
。
struct record_sale
{
char customername[25];
char item[20];
double price;
double payment;
}; //here
关于C 代码错误 : expected ';' , 标识符或 '(' 之前的 'char' 。我似乎找不到这个错误的解决方案。有人可以帮我吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29837075/