02 2021 档案
摘要:在循环中的break语句,无论有多少层for循环,break语句永远只跳出自己所在那一层循环,即写在那一层循环就跳出那一层循环。
阅读全文
摘要:1. 结构体定义 struct Books { char title[50]; char author[50]; char subject[100]; int book_id; } book; Books是定义了结构体类型tag,book是结构体变量。 2. 结构体的访问 使用成员访问运算符(.),
阅读全文
摘要:strlen: 获取字符串长度,例如, int len = strlen(command); char* result = (char*)malloc(sizeof(char) * (len + 1)); strcpy(dest, str): 复制str到dest strcat(dest, str)
阅读全文
摘要:参考博文:https://blog.csdn.net/weixin_35653315/article/details/89419295 异或运算的逆运算是其本身
阅读全文