![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug日记
liu_569
这个作者很懒,什么都没留下…
展开
-
debug日记:批处理调用visual studio生成的可执行文件exe并传参
首先,要用visual studio生成可执行文件.exe。 起初,我在debug模式下生成exe文件,这个文件点开了没法正常执行。 然后,切换成release模式来生成可执行文件。 这样,项目下的release文件夹下就有了生成的可执行文件。 然后写批处理文件来调用此应用程序并传参。 rem 1-problem_instance 2-type_of_change 3-change_degree 4-change_speed 5-total_changes 6-alg_mode @e原创 2022-05-25 16:43:28 · 687 阅读 · 0 评论 -
debug日记:fopen_s和fopen的区别
背景: 使用的代码本来用fopen打开文件,从debug改成release模式后,就提示不安全,建议改为fopen_s。 于是一顿面向百度debug,改成fopen_s后一直出现“进程已退出”的情况。 errno_t err; /*initialize and open output files*/ perf_filename = new char[CHAR_LEN]; sprintf_s(perf_filename,CHAR_LEN, "Alg_%i_Performance_..原创 2022-05-25 11:25:09 · 853 阅读 · 0 评论