![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习
ImgLearning
这个作者很懒,什么都没留下…
展开
-
防止运行后一闪就退出
可以在cpp里的main函数return之间加入getchar()防止运行后一闪就退出,加上system("pause")或者直接ctrl+F5也行。原创 2017-11-01 09:37:37 · 473 阅读 · 0 评论 -
获取当前路径GetCurrentPath
char* GetCurrentPath() { char currentPath[MAX_PATH] = { 0 }; int n = GetModuleFileNameA(NULL, currentPath, MAX_PATH); currentPath[strrchr(currentPath, '\\') - currentPath + 1] = 0;//将最后一个"\\"后的字符置为0 ...原创 2018-06-04 11:12:21 · 2500 阅读 · 0 评论