摘要: 有几点需要注意的地方一是将right转化为与left在在同一节 阅读全文
posted @ 2019-07-24 20:17 睿晞 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 需要注意的有关于二维字符串数组的输入问题,先是定义要多留一位用于存放‘\0’ 还有就是使用scanf后,会有回车换行符,如果要使用gets或是接下来的方式代替gets,记得加上getchar,不然会出错。 参考代码: 阅读全文
posted @ 2019-07-24 14:26 睿晞 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 参考代码: include include int main() { char str[100], ans[40][40]; scanf("%s", str); int N = strlen(str); int n1 = (N + 2)/3;///是左右两边的字符数量 int n2 = N n1 2 阅读全文
posted @ 2019-07-24 10:53 睿晞 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 需要注意的就是把判定函数提取出来,这样可以简化代码,同时参数引用了&,可以对于传入参数进行修改。 参考代码: define _CRT_SECURE_NO_WARNINGS include include include struct node { char name[20], password[20 阅读全文
posted @ 2019-07-24 10:52 睿晞 阅读(164) 评论(0) 推荐(0) 编辑