iostream is the correct header, not iostream.h. And as with any standard C++ header the contents are in the std namespace. That means std::cout instead of cout, std::endl instead of endl and so forth.
okay my problem is when i try to compile it it says line 19 has an error
error - expected i before cout so should i try std::cout on all of them?
and i need the program to output the stuff you input just relaying the info back to the user
what about line 19? with the
|19|error: `setw' undeclared (first use this function)|
|19|error: (Each undeclared identifier is reported only once for each function it appears in.)|
To answer your question about std::cout, yes you would need to use that since the only thing you qualified to use std:: namespace was string. You could add similar directives for cout and endl, or use std::cout and std::endl. To be fair, I'm not sure if you have to pass cin to getling using std:: or not though.