The operator < is undefined for the argument type(s) char, String

2025-04-24 21:24:32
推荐回答(1个)
回答1:

ch是字符类型,而"A"是字符串类型,类型不同无法比较。
把"A""Z"改为'A''Z'即可。
""代表字符串,''代表字符。
请采纳