I programming a code
example:
Code:
class MyWidget: public QWidget
{
public:
MyWidget( QWidget *parent = 0, const char *name =0)
};
MyWidget::MyWidget( QWidget *parent, const char *name)
:QWidget( parent, name)
{
¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_
¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_¡_
}
the compiler tell me that the
" ISO C++ forbids defining types within return Type
return type specification for constructor invalid"
but have some code, can pass the compile
why?
I know the construction don't need the return type!