[电脑基础知识]c语言基础.docVIP

  • 1
  • 0
  • 约3.7万字
  • 约 63页
  • 2018-03-01 发布于浙江
  • 举报
[电脑基础知识]c语言基础

/* 回忆程序的基本结构 默写一个基本程序 */ #include stdio.h /* stdio.h *.h: 头文件 头文件一般包含一些函数的说明 因为在stdio.h包含了printf 和 getch 这些函数的说明 而我们的程序要使用这些函数 所以我们要把它包含进来 属于预编译指令中的文件包含指令 standard input output */ /* void main() { printf(I am 007\n); printf(I am yangjun\n); printf(telephone:n); printf(email: yanghuajun@163.com\n); printf(blog: \n); getch(); return; } */ /* printf: 用来向显示器输出的函数 print function 所有的函数调用都有() ()里面放置的是函数所需要的参数 /* */ C语言的注释,起说明的作用 注意语言区分大小写的? printf:内容必须用括起来 :用括起来的东西在C语言里叫做字符串 字符串:由一些字符构成的一个串 比如字母 数字字符 ,也有些看不到的字符 比如\n,??行符 \x:表示转义字符 */ /* void main()

文档评论(0)

1亿VIP精品文档

相关文档