Dev-C++debug使用方法

最基本的调试既是在程序中插入输出语句输出某些变量的值,以检查程序运行到此处时,变量的变化是否符合设想。

当使用源代码文件格式时,可以=将某段调试输出这样写:

 #ifdef _mydebug//调试开始
     cout << "This is a debug message
";
    /*以下时调试内容*/
    cout << ""The debug prosess is over" << endl;     
#endif//调试结束

若为工程文件则应该  参考如下方法:https://blog.csdn.net/qq_43347097/article/details/97000762

原文地址:https://www.cnblogs.com/theSunAndSnow/p/11930161.html