error: expected constructor, destructor, or type conversion before '(' token

用Qt写C++时,这个报错很模糊,其实就是因为没写main函数,在函数体外写除了声明以外的行代码造成的,加个main函数就好。
posted @ 2022-08-28 22:23  听风彡  阅读(561)  评论(0)    收藏  举报