小编Lun*_*tik的帖子

*之前的预期构造函数,析构函数或类型转换(第45行)

第45行的subj

//Server.h
class Server : public QTcpServer
{
Q_OBJECT
    public:
        typedef QHash<int, Student*> Students;
         ...
        Students* getStudents      () const;
         ...
    private:
        Students _students;
};

//Server.cpp
void Server::setPort( quint16 port )
{
    _port = port;
}

quint16 Server::getPort() const
{
    return _port;
}
Students* Server::getStudents() const // line 45
{
    return _students;
}
Run Code Online (Sandbox Code Playgroud)

c++ qt stl

2
推荐指数
1
解决办法
224
查看次数

标签 统计

c++ ×1

qt ×1

stl ×1