摘要: /* 有一个字符串,包含n个字符,编写一函数,将此字符串中从第m个字符开始的全部字符串复制成另一个字符串 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_SIZE 10 /* p: 指针的指针(a p 阅读全文
posted @ 2021-09-23 20:34 叶梓渔 阅读(1129) 评论(0) 推荐(0)
摘要: int main() { char *str[] = {"welcome", "to", "Fortemdia", "Nanjing"}; // str: 指针数组,其每个都是一个指向 char 数据类型的指针 // str[0] 指向 "welcome", // str[1] 指向 "to" // 阅读全文
posted @ 2021-09-23 18:23 叶梓渔 阅读(409) 评论(0) 推荐(0)