信息:Microsoft Visual Studio 2012 Ultimate、Windows 8 Professional、C++。我有个问题...
QIClassStringOperations.hpp
#include "Q.hpp"
class QIClassStringOperations
{
public:
virtual void FromString(const QString& Str) = 0;
virtual QString ToString() = 0;
};
Q.hpp
#include "QString.hpp"
QString.hpp
template <typename Type> class CString
{
//...
};
typedef CString<char> QString;
在编译我有这个错误:
c:\...\QIClassStringOperations.hpp(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
这条线的问题:
virtual void FromString(const QString& Str) = 0;
对不起,我的英语不好 :)。你能帮助我吗?