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.
bool check(const char* pass);
constは、関数内でchar *を変更できないことを意味しますか?
char * cには、charがchar *内にあるかどうかをチェックするcontains(char c)のような関数がありますか?
char *の4番目の文字に到達する方法は?
そのchar*の長さを与える関数はありますか。'\ 0'がどこにあるかを確認する以外に?
std::string代わりに使用してください。
std::string
いいえ、それはあなたがを変更できないことを意味しますchar。
char
char*はポインタであり、機能はありません。あなたは調べることができますstrchr。
char*
strchr
pass[3]
strlen'\0'、ただし、内部でチェックします。
strlen
'\0'