matlab中遗传算法代码:dev-c++不能使用exit();么?

来源:百度文库 编辑:杭州交通信息网 时间:2024/06/13 00:17:02

可以的呀,要#include <stdlib.h> //c格式
或者
#include <cstdlib>
using namespace std;

还有,调用格式是
exit(0); //代表正常退出,如果传递非0值则代表出现错误退出,比如
exit(1);
而不是调用exit();