03 2020 档案
c语言字符串从第m个位置开始复制
摘要:/* 有一字符串,包含n个字符。 写一函数,将此字符串中从第m个字符开始的全部字符复制成为另一个字符串 */#include <stdio.h>#include <malloc.h> char *strmcpy(char *a, int m){ char *s = a ; char *b = (ch
阅读全文
c语言指针实现矩阵的转置
摘要:/* 写一函数,将一个3x3的整型矩阵转置,用指针实现 */#include <stdio.h>#include <malloc.h>#define SIZE 3 int main(){ int **a = (int **)malloc(sizeof(int *)*SIZE);//二维数组动态分配内
阅读全文
浙公网安备 33010602011771号