|
From: Per W. <pw...@ia...> - 2007-11-15 10:19:30
|
You can not use a data type before it is fully defined (except for a couple of exceptions, when it comes to pointers and references to incomplete structs or classes). The class Time isn't fully defined when you try to use it in your + operator. Remove the + operator from the Time type. Create a separate (inline) operator+ function outside of the Time class, and let it take two Time parameters. /pwm On Thu, 15 Nov 2007, yun peter wrote: > the attachment includes the program and debug information. > my platform is vista home basic. > I don't know what the reasons are. > > > best regards! > |