harumakigohan686

2023年1月5日

CP1024 单词切分以及一些拓展题

摘要: 又是一道小题,(但是也不是空格作为分割符,范围更广)本质上还是连续字符串,又考了判断嵌套啊 俺的做法: #include <stdio.h> #include <ctype.h> #include <string.h> int main() { char a[100];//用于存储刚开始的字符串 c 阅读全文

posted @ 2023-01-05 22:55 harumakigohan 阅读(89) 评论(0) 推荐(0)
CP1023 单词首字母大写

摘要: 一道卡了我好几天的题目(题干绝不是你看起来的这么简单,因为并不是简单的空格判定) 我的做法: #include <stdio.h> #include <ctype.h> #include <string.h> #define MAX_NUM 128 int main() { char s[MAX_N 阅读全文

posted @ 2023-01-05 18:01 harumakigohan 阅读(34) 评论(0) 推荐(0)