c++ - Class declaration error at explicit keyword -


i getting error: 'in' has not been declared. in class in qt. on constructor line starts explicit.

class inputform : public qwidget {     q_object public:     explicit inputform(int ibot, in itop, double dbot, double dtop);     void displayform();  public slots:     void computeresult(); private:     void setupform();     int m_boti, m_topi;     double m_botd, m_topd, m_pay;     qlineedit* m_strentry;     qlineedit* m_intentry;     qlineedit* m_doubleentry;     qlabel* m_result;     qstring m_name;     static qregexp s_nameformat; }; 

inputform(int ibot, int itop, double dbot, double dtop);                   /*  ^  */ 

typo. int itop, not in itop. (did read error message , tried yourself?)

note might need change type in implementation file if copied line. note explicit isn't necessary, constructor cannot used implicit conversion anyway.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -