string not defined

Hello

I was programming and used string as follows:

1
2
3
4
5
.
.
void DisplayText(string text, int x, int y, int size, int fR, int fG, int fB, int bR, int bG, int bB);
.
.

when I run my code, the compiler lists this error:
'string' was not declared in this scope


What's wrong?

Thanks
Check that you have added the lines:
1
2
#include <string>
using namespace std;
@abhishekm71

Thanks for correcting my silly error. :)
Topic archived. No new replies allowed.