摘要: 利用数组实现 1 #include<stdio.h> 2 #include<string.h> 3 4 void copy_string(char str1[],char str2[]) 5 { 6 int i = 0; 7 while(str2[i] != '\0') 8 { 9 str1[i] 阅读全文
posted @ 2020-06-24 19:26 小东哥WD 阅读(8110) 评论(0) 推荐(0) 编辑
摘要: Linux下各数据: 整型: 占空间内存 值域char 1字节 -128~127short 2字节 -2^15~2^15-1int 4字节 -2^31~2^31-1long 4字节 -2^31~2^31-1整型:unsigned char 1字节 0~255unsigned short 2字节 0~ 阅读全文
posted @ 2020-06-23 20:03 小东哥WD 阅读(154) 评论(0) 推荐(0) 编辑