求助 isupper 返回值
  • 板块灌水区
  • 楼主spider_oyster
  • 当前回复5
  • 已保存回复5
  • 发布时间2023/5/15 15:55
  • 上次更新2023/10/23 15:41:00
查看原帖
求助 isupper 返回值
501028
spider_oyster楼主2023/5/15 15:55

abc_301_f。

我把

inline int upper(char c) {return c=='?'?26:isupper(c);}
inline int lower(char c) {return c=='?'?26:islower(c);}

改为

int upper(char c) {return c=='?'?26:isupper(c)?1:0;}
int lower(char c) {return c=='?'?26:islower(c)?1:0;}

就对了,为什么捏

2023/5/15 15:55
加载中...