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.
.h ファイルで文字列パラメーターを使用して関数を宣言しようとすると、エラーが発生します。string.h =) を含めるのを忘れていません。
試す
#include <string>
それ以外の
#include <string.h>
それらは異なるものです - string.h は CRT であり、string は STL です。