[cs23021-2] 'string' does not name a type

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Oct 15 20:45:41 EDT 2009


CS1 students,

As you are declaring functions that pass/return strings in Lab 7 in
header files and use strings in structures in Lab 8 (in header files)
keep in mind that you need to use

   using namespace std;

before you use type string. Or you'll get the above error.

Thanks,
-- 
Mikhail


More information about the cs23021-2 mailing list