在一个简单赋值的代码出现了:unhandled exception in oxc000000005 :Acess Violation
void Test:fuzhi()
{
double x,y;
x=1;
y=2;
}在别的Test的成员函数调用fuzhi()函数时 x=1出出现了
unhandled exception in oxc000000005 :Acess Violation如果我写成y=2;x=1;
则在y=2的时候出现 unhandled exception in oxc000000005 :Acess Violation为什么出现这样的错误?我想是不是我对.ini文件写了自定义的函数进行了频繁操作造成的,请高手帮我看看函数对不对:
int Test::ReadIntegerIni(CString fname, CString Section, CString Ident , int Default )
{
   int Reasult;
   Reasult = GetPrivateProfileInt(Section, Ident, Default, fname);
   return Reasult;
}Void Test::WritePrivateProfileString(CString fname, CString Section, CString Ident , double value )
{
   CString str;
   str.Format("%d",value);
   WritePrivateProfileString(section,Ident,str,fname );  
}我同时还写了两个类似对 float 型数据读写操作的函数, 在类函数里频繁的调用了这些读写函数, 这样对吗?