摘要:
Strcmp 从左到右比较字符ASCLL码大小,在第一个不同处停止判断,输出值即为对应位置上str1-str2的值 特别的,若两字符串相等,返回值为0 Strnmp 比较前n个字符 1 #include <stdio.h> 2 #include <string.h> 3 int main ( ) 4 阅读全文
posted @ 2020-02-02 22:38
Cs-老oier
阅读(126)
评论(0)
推荐(0)
摘要:
Strchr: char * strchr (const char *s, int c) 查找字符c第一次在字符串s中的位置,返回位置指针;若未发现,返回NULL.(从左向右) Strrchr 从右向左 1 #include <stdio.h> 2 #include <string.h> 3 #in 阅读全文
posted @ 2020-02-02 21:25
Cs-老oier
阅读(268)
评论(0)
推荐(0)
摘要:
Strcpy: Char *strcpy(char *dst, const char *scr); 返回值为dst的首地址 下面是一段应用代码 1 #include <stdio.h> 2 #include <string.h> 3 # define MAX 40 4 int main() 5 { 阅读全文
posted @ 2020-02-02 20:13
Cs-老oier
阅读(466)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/noipBar/article/details/84337704 转载自noipbar 阅读全文
posted @ 2020-02-02 00:37
Cs-老oier
阅读(106)
评论(0)
推荐(0)
摘要:
1 #include <iostream> 3 using namespace std; 5 const int N=6; //队列长度 7 int a[N]; //队列数组 9 int head; //头指针的位置 11 int tail; // 15 void init(); //初始 17 v 阅读全文
posted @ 2020-02-02 00:26
Cs-老oier
阅读(554)
评论(0)
推荐(0)

浙公网安备 33010602011771号