Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
簡単な質問。
LPCSTR の最初の位置にある文字を確認する方法は?
または、最初の位置にスペースがあるかどうかを確認しますか?
という名前の LPCSTRを指定するとstr、 を使用して最初の文字にアクセスできますstr[0]。例えば:
str
str[0]
if (str[0] == ' ') { // First character is a space }