程序在release下编译运行均没有错误

在debug下编译没有错误,运行出错:Run-Time Check Failer #3--The variable 'tmpRecord' is being used without being defined

检查程序,变量tmpRecord确实是定义了。

真正的错误原因是变量tmpRecord没有进行初始化。tmpRecord是个结构体变量,用tmpRecord={0}来进行初始化。