- 博客(4)
- 收藏
- 关注
原创 C 程序设计语言——第四章练习题
C 程序设计语言第二版——第三章练习题1. Write the function strindex(s,t) which returns the position of the rightmost occurrence of t in s, or -1 if there is none.1. Write the function strindex(s,t) which returns the p...
2019-10-20 23:17:48 1203
原创 c 语言实现 atof() 函数
c 语言实现 atof 函数1. atof() 函数介绍浮点数的合法表达形式测试自带 atof() 函数2. 实现 atof() 函数功能1. atof() 函数介绍C 库函数 *double atof(const char str) 属于库函数 stdlib.h,把参数 str 所指向的字符串转换为一个浮点数。具体操作为:跳过字符串开始的空白符,识别数字,点好,或正负符号,开始扫描合法浮...
2019-10-19 17:25:12 5077
原创 C 程序设计语言——第三章练习题
C 程序设计语言——第三章练习题3.1 Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside.) Write a version with only one test inside the loop and measure the ...
2019-10-17 13:08:55 1785
原创 C 程序设计语言——第二章练习题
C 程序设计语言——第二章——Types, Operators and Expressions——练习题2.3 Write a function htoi(s), which converts a string of hexadecimal digits (including an optional 0x or 0X) into its equivalent integer value. The ...
2019-10-15 21:37:33 1785
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人