Home > Back-end >  Compare error, seek help from bosses
Compare error, seek help from bosses

Time:12-09

The class qkecheng: public xinxi//absent course
{
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; iIf (* (st1 [I + 1] gettime () + 1==* (st1 [j]. J gettime () + 1) & amp; & (I + 1) * (st1 gettime () + 2)==* (st1 [j]. J gettime () + 2))
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
if (* (st1 [I + 1] gettime () + 1==* (st1 [j]. J gettime () + 1) & amp; & (I + 1) * (st1 gettime () + 2)==* (st1 [j]. J gettime () + 2))

Reference solution to bool types, what are you doing?
  • Related