错误
DONG9297
这个作者很懒,什么都没留下…
展开
-
C++错误:此声明没有存储类或类型说明符
C++错误:此声明没有存储类或类型说明符原因:在函数体外进行赋值#include "pch.h"#include <iostream>#include "15311002_2.h"using namespace std;namespace N15311002{ STUDENTLIST sList; sList.count = 0;//出错}解决:把变量定义移到...原创 2019-03-10 11:00:41 · 15577 阅读 · 0 评论 -
记一次C++中关于strlen()的错误
起因C++课实验,将一个类str2中的字符串成员变量追加到str中的字符串。编译没有问题,运行时在中间卡住无法继续运行。错误HEAP CORRUPTION DETECTED: after Normal block (#163) at 0x00968BD8. CRT detected that the application wrote to memory after end of heap...原创 2019-03-17 17:10:20 · 2241 阅读 · 0 评论