c++ 怎么取字符串的第一个字符

2025-02-27 05:49:02
推荐回答(1个)
回答1:

直接用下标0就行了
string s="hello";
s[0]就是h