![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法竞赛入门经典
Adam丶
这个作者很懒,什么都没留下…
展开
-
C语言strchr()函数
描述C 库函数 char *strchr(const char *str, int c) 在参数 str 所指向的字符串中搜索第一次出现字符 c(一个无符号字符)的位置。参数str – 要被检索的 C 字符串。c – 在 str 中要搜索的字符。返回值该函数返回在字符串 str 中第一次出现字符 c 的位置,如果未找到该字符则返回 NULL。代码示例#include <stdio.h>#include <string.h>int main (){ con原创 2022-02-09 14:12:12 · 8235 阅读 · 0 评论 -
C语言sprintf()函数
C语言sprintf()函数描述C 库函数 int sprintf(char *str, const char *format, …) 发送格式化输出到 str 所指向的字符串。代码示例#include <stdio.h>#include <math.h>int main(){ char str[80]; sprintf(str, "Pi的值 = %f", M_PI); puts(str); return(0);}控制台输出结果原创 2022-02-09 14:05:07 · 604 阅读 · 0 评论 -
C语言sizeof()函数
C语言sizeof()函数原创 2022-01-20 10:03:07 · 609 阅读 · 0 评论