As has been mentioned before, the string library contains the string class data type.
I'll fix this more later, but here are some lecture notes.
Also find a basic introduction here and notes on getline here.