vc++中try,catch,throw怎么不对了?我写了这样的代码 Text == ) throw

发布时间:2021-02-28 00:57:41

vc++中try,catch,throw怎么不对了?我写了这样的代码 Text == ) throw a;}Text =数据输入错误;};int a,b,c;Text );Text) ;c=a+b;for(c=1;c%b!=0||c%a!=0;c++);Text +的最小公倍数是:+ Convert::ToString (c);在编译时可以通过,但是输入空格时,它不能正确处理异常啊

网友回答

try { if(!strcmp( ,this->textBox1 ->Text) || !strcmp( ,this->textBox2 ->Text))
throw a;
} catch (char* )
{ this->label4->Text =数据输入错误;
AfxMessageBox(数据输入错误);
};补充:请问一下 silvergingko 我给的答案对不对啊
以上问题属网友观点,不代表本站立场,仅供参考!