早乙女由衣步兵ed2k:C语言基本操作

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 16:19:46
有哪位高手能告诉我一个C语言的标准程序的输入和输出,我现在对以前所学的知识都忘记了,程序的开始和结尾的定义语句以及输入输出的格式,谢谢大家了!!!!!

#include<stdio.h>
void main()
{
int a;
scanf("%d",&a);
printf("%d\n",a);
}
这就是你虚要的最简单的程序!~
scanf是输入
Printf是输出

#include<头文件>
{
printf("hello world\n");
scanf("数据类型%",&输入的变量名);
}

#include<stdio.h>
main()
{
printf("hello world\n");
scanf("数据类型%",&输入的变量名);
}

#include"stdio.h"
main()
{int()
printf();)