JackSun0106

1.新建项目

 

 2.选择新建空项目

3.在源文件处右键单击,选择添加-新建项

4.选择“c++文件”,将名称后缀改成.c即可用C语言编写程序

5.编写代码:

#include <stdio.h>
int main(void)
{
printf("Hello World!\n");
system("pause");
return 0;
}

注:为了防止结果一闪而过,有以下几种解决办法:

      (1)快捷键 Ctrl+F5

      (2)在return 0; 语句前加一句 system("pause");

      (3)在return 0; 语句前加一句 getchar();

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-08-31
  • 2022-01-30
  • 2021-10-07
  • 2021-12-05
  • 2021-10-02
  • 2021-11-18
  • 2021-07-13
猜你喜欢
  • 2021-10-16
  • 2021-12-05
  • 2021-07-20
  • 2021-12-13
  • 2021-07-23
  • 2021-11-03
相关资源
相似解决方案