Loading

C语言第一个程序 2021-12-05

C语言第一个程序 2021-12-05

C语言教程(全网最具有比喻形象的)

RUNOOB.com

#include <stdio.h>

其中stdio.h > standrd 标准 i input 输入 o out 输出

这个文件可能会包含一个标准的输入输出文件

#include<stdio.h>
int main(void)
{
	/* 注释 */
	//注释
	printf("hello world! \n");
	//print 打印 f format 格式化 printf 格式化输出
	return 0;
}

VS2019 Teb 键自动补全

#include<stdio.h>
int main(void)
{
	int number;
	scanf_s("%d",&number);
	printf("number=%d",number);

	return 0;
}

VS2019中 sanf 需要加_s 才可以运行 scan_s

posted @ 2021-12-05 23:38  云煮  阅读(35)  评论(0)    收藏  举报