- 3
- 0
- 约5.8千字
- 约 27页
- 2017-07-12 发布于天津
- 举报
第4章 字符串和格式化输入输出.pdf
第4章
字符串和格式化输入/输出
chenfei314@fzu.edu.cn
改正下面程序
Include stdio.h
main
{ int a;b;
float c,d;
a=e2;
B=3;
c=.3;
printf(“%d”,d*c);
}
改正下面程序
void main(int)
{cows, legs int;
printf(How many cow legs did you count?\n);
scanf(%c,legs);
cows=legs/4;
printf(That implies there are %f cows.\n,cows)
}
正确程序
本章内容
函数strlen()
关键字const
字符串
如何创建和存储字符串
读取和显示字符串
printf()函数与scanf()函数
4.1 前导程序
#includestdio.h
#includestring.h
#define DENSITY 62.4
int main(void)
{ float weight
原创力文档

文档评论(0)