C程序设计ch输入与输出操作管理分析.pptVIP

  • 4
  • 0
  • 约 19页
  • 2016-11-25 发布于湖北
  • 举报

C程序设计ch输入与输出操作管理分析.ppt

例p82 输入字符,判断打印是字母、数字还是其它特殊字符。 测试字符是字母或数字的函数有: isalpha(ch) isdigit(ch); 这些函数包含在ctype.h。 3.3 格式输入 (p85) 格式输入函数: 输入分隔符的指定 一般以空格、TAB或回车键作为分隔符 其它字符做分隔符:格式串中两个格式符间字符 用“%c”格式符时,空格和转义字符作为有效字符输入 例pp.104 Draw a graph to determine the reliability of an electronic component at various operating times, from 0 to 3000 hours. The reliability of an electronic component is given by Reliability(r) = e (-λt) λ:the component failure rate per hour.The failure rate λ (lambda) is 0.001. t: the time of operation in hours. * * 第三章 输入与输出操作管理 C语言无I/O语句,I/O操作由函数实现 #include stdio.h 格式:getchar( ) 功能:从键盘读一字符 返值:

文档评论(0)

1亿VIP精品文档

相关文档