cmd控制台程序如何停留

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/yxswhy/article/details/82849708

#include <stdlib.h>中含有system("pause")。

在main函数中,return前添加

注意pause不要写错,如果写错系统不会提示错误,但是没有停留的结果。

#include "stdafx.h"

int main(int argc, _TCHAR* argv[])
{
    printf("hello world!\n");
    system("pause");
    return 0;
}

猜你喜欢

转载自blog.csdn.net/yxswhy/article/details/82849708
今日推荐