C语言基础教程Lesson11.pdfVIP

  • 3
  • 0
  • 约5.85千字
  • 约 23页
  • 2017-06-15 发布于江苏
  • 举报
C语言基础教程Lesson11

Lesson 11 字符串标准函数 二维数组 字符串标准函数 对于所有的函数,注意下面问题: 原型声明在什么头文件? 函数功能 函数的返回值 各函数参数的意义 应用 字符串转换为数值型 double atof(str) 将str所指字符串转换为双精度值由返回值返回, 如无效,返回0 int atoi(str) 将str所指字符串转换为整型数由返回值返回,如 无效,返回0 long atol(str) 将str所指字符串转换为长整型数由返回值返回, 如无效,返回0 原型在stdlib.h中 #include stdio.h #include stdlib.h void main() { char num1[20], num2[20]; double d1, d2, sum; printf(\nEnter the first number:); gets(num1); printf(Enter ths second number:); gets(n

文档评论(0)

1亿VIP精品文档

相关文档