C ++ constructor parameter problem

xiaoxiao2021-03-06  71

CJOB (int xnumber = 0, cmytime & xreachtime, int xruntime = 0);

Tip error: Error C2548: 'CJOB :: CJob': Missing Default Parameter for Parameter 2

The teacher said that X (Type X, Type Y, Type Z) can only assign a value from the right side, such as

x (Type X, Type Y, Type Z = 0)

x (Type X, Type Y = 0, Type Z = 0)

Can't

X (Type X = 0, Type Y, Type Z = 0)

It turned out to be, huh, huh

转载请注明原文地址:https://www.9cbs.com/read-88849.html

New Post(0)