'string' does not name a type

#ifndef ADD_H_
#define ADD_H_

#include <string.h>

int add(int, int);
string cat(int, int);

#endif /* ADD_H_ */

when i compile the code I get the following error
'string' does not name a type

i tried using string as well but get the same error. can anyone tell me what wrong I am doing here.
1
2
3
4
5
6
#include <string>

using std::string;

int add(int, int);
string cat(int, int);

thnx, it worked now with above modifications.
Topic archived. No new replies allowed.