You should probably show more code, like the declaration of search.name and strlength, as well as what headers you are including. Also, I assume you are using g++ to compile.
This code seems to work just fine:
Incidentally, the standard string version of that code is this:
using namespace std;
const int strlength = 80;
cout << "please enter this student's full name:\n>";
std::cout << "please enter this student's full name:\n>";