1.在本地和gitlab上创建新分支
git checkout -b fixspacequestion origin/master
git add /.
git commit -m 'fix space question'
git push origin fixspacequestion
2.字符串strcpy和直接等于
strcpy为把一个字符串地址的内容赋值给另一个字符串地址,而直接等于只是把指针赋给另一个字符串,具体如下:
char *a = "aaaaa";
char *b = a;
b的地址等于a,内容也等于a。
char *a = "aaaaa";
char *b = (char*)malloc(6*sizeof(char));
strcpy(b, a);