
C++ 疑难
georgelife7
这个作者很懒,什么都没留下…
展开
-
error C2011: ' ':'class' type redefinition
'class' type redefinition 解决方案这个错误提示是说类重复定义了,下面举例说明一下怎么解决.先建立一个Win32应用程序的空工程,再 建立所下面需要的文件://ds.hclass ds{public: int m_ds; void dscreate();};//ds.cpp#include #include "ds.h"void ds::dscreate(){ cout}//dc.h#include "ds转载 2011-03-10 23:00:00 · 2442 阅读 · 0 评论 -
关于 cin >> string 无法编译的问题
<br />Visual Studio2008 环境下写了如下两行代码,<br /> <br /> string data;<br /> cin >> data;<br /> <br />结果编译时告知 : <br /> <br />error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no accepta原创 2011-04-06 16:22:00 · 3135 阅读 · 0 评论