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];
答案 0 :(得分:3)
在结构;
的定义之后,您需要record_sale
。
struct record_sale
{
char customername[25];
char item[20];
double price;
double payment;
}; //here