Time:04-11
CodePudding user response:
Int I, j, n, m; Char a, [1024].
that define a, like this: Int I, j, n, m; Char a, [1024].
Quote: refer to 1st floor QZJHJXJ response: that define a, like this: Int I, j, n, m; Char a, [1024]. Severity code shows the project file line prohibits display status Error C2065 "PGoods" : no statement of identifiers Project7 C: \ Users \ ASUS \ source \ repos \ Project7 \ Project7 \ Suppermacket h 6 This is the
Goods * PGoods [10].
Goods * PGoods [10]. the Goods is to define the structure of the body? Or another?
working class Goods. The class Suppermacket {Private: Goods * PGoods [10]; Public: Suppermacket () {for (int i=0; I & lt; 10; I++) PGoods [I]=0; } Void Append (); Void the Delete (); Void the Query (); Friend void Sale (Suppermacket&); }; Void Sale (Suppermacket&); Working class Goods {//... //... };
Page link:https//www.codepudding.com/Backend/107547.html