摘要:
char * strcpy(char *dst,const char *src) { if((dst==NULL)||(src==NULL)) return NULL; char *ret = dst; //[1] while ((*dst++=*src++)!='\0'); //[2]src内的值 阅读全文
posted @ 2021-04-17 17:52
⭐⭐-fighting⭐⭐
阅读(62)
评论(0)
推荐(0)
摘要:
strcpy()函数是C语言中的一个复制字符串的库函数,以下将详细解释说明一下: · 函数声明以及实现代码 char *strcpy(char *dst, const char *src);char * strcpy(char *dst,const char *src) { if((dst==NUL 阅读全文
posted @ 2021-04-17 17:26
⭐⭐-fighting⭐⭐
阅读(2699)
评论(0)
推荐(0)
摘要:
#include <stdio.h> #include <stdlib.h> int main() { char ch; /*、putchar() a、 putchar函数的格式:putchar(ch) (其中ch可以是一个字符变量或常量,也可以是一个转义字符) b、putchar函数的作用:向终端 阅读全文
posted @ 2021-04-17 15:57
⭐⭐-fighting⭐⭐
阅读(461)
评论(0)
推荐(0)