gpt4 book ai didi

c - 如何在代码块中使用C打开记事本?

转载 作者:行者123 更新时间:2023-11-30 19:25:18 24 4
gpt4 key购买 nike

This is what happening 0 error, 0 warnings but still not opening notepad

我使用了此代码,但无法使用代码块打开记事本运行该程序的代码块是否有任何特定设置?

#include<stdio.h>
#include<stdlib.h>
#include<process.h>
#include<windows.h>
void main()
{
system("notepad.exe");
getch();
}

最佳答案

上面提供的代码在windows 10上成功运行,因为codeblocks最新版本主要是为windows 10设计的,它确实在windows 10上打开了记事本,谢谢。

关于c - 如何在代码块中使用C打开记事本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59055807/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com