{
Public:
Qkecheng () {kcshu++; }
~ qkecheng () {kcshu -; }
Int getrc (xinxi st1 [], int n, int j);
Char QKN [20].//public data members
Private:
Int renci.
Static int kcshu;//static data members
};
Int qkecheng: : kcshu=0;
Int qkecheng: : getrc (xinxi st1 [], int n, int j)
{
Renci=0;
Renci++;
for(int i=0; i
If (STRCMP (QKN, st1 [I] getkecheng ())==0)
Renci++;
Return renci.
}
Error: [Error] ISO c + + forbids comparison between pointer and integer [- fpermissive]
[Error] invalid type argument of unary '*' (have 'Boolean')
CodePudding user response:
Reference