c++ class why need main?

后端 未结 5 2135
难免孤独
难免孤独 2021-01-27 01:28

Hello I\'m writing a little project in c++ where I would like to have some classes that does some work, I wrote the interfaces and the implementation of the classes.

The

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-27 01:38

     public:
       method1(int arg1);
    

    You are missing the return type for method1. Did you mean something like

       int method1(int arg1);
    

提交回复
热议问题