遇到的问题
longyup
这个作者很懒,什么都没留下…
展开
-
scanf 不能使用的问题
错误 1 error C4996: ‘scanf’: This function or variable may be unsafe. Consid… 原因是Visual C++ 2012 使用了更加安全的 run-time library routines 。新的Security CRT functions(就是那些带有“_s”后缀的函数) 解决方法 在#include之前加上以下两行 #def...原创 2019-07-27 06:52:14 · 2713 阅读 · 0 评论 -
ERROR:没有与这些操作数匹配的运算符,操作数类型为std::string
string str(“hello world”); string *pstr=&str; cout<<*pstr<<endl; //cout <<pstr[0]<<endl; 需要 #include转载 2019-07-27 17:45:49 · 6048 阅读 · 0 评论