Unknown type name string C++
You need to include the string library in order to use std::string
.
Since you mentioned a lot of errors, I suspect you forgot to include <cstring>
in order to use strlen()
.
#include <string>
#include <cstring>
You have to include the string library:
#include <string>