 convert int to string for use in allegro function
I am trying to run the following code using allegro. 

textout_ex(screen, font, numbComments , 100, 100, GREEN, BLACK);

numbComments is an integer,
the function prototype of this function is 

   
      void textout_ex(BITMAP *bmp, const FONT *f, const char *s, 
                                          int x, int y, int color, int bg);

and i cannot, according to my understanding pass this integer in the third position.

I therefore need to convert the integer into a string.

I did it like this, but it didnt work. Help please?

   int score = numbComments;

   string Str;

   stringstream out; // YOU MUST INCLUDE <sstream> FOR THIS.

   out << score;

   Str = out.str();

and then tried to use the string Str, which didnt work
 convert int to string for use in allegro function
===

I am trying to run the following code using allegro. 

textout_ex(screen, font, numbComments , 100, 100, GREEN, BLACK);

numbComments is an integer,
the function prototype of this function is 

   
      void textout_ex(BITMAP *bmp, const FONT *f, const char *s, 
                                          int x, int y, int color, int bg);

and i cannot, according to my understanding pass this integer in the third position.

I therefore need to convert the integer into a string.

I did it like this, but it didnt work. Help please?

   int score = numbComments;

   string Str;

   stringstream out; // YOU MUST INCLUDE <sstream> FOR THIS.

   out << score;

   Str = out.str();

and then tried to use the string Str, which didnt work