   [Allegro] Help with printing variables onto the screen a la textout
  Hey everyone, first post [:So, my question regards a pong clone I'm working on. I've got variables (p1score and p2score) that I'm trying to output to the screen. However, textout refuses to print variables.. is there a different function I should be using?Thanks.   
  You need to convert the variables to strings.  There are several ways of doing so:In C:char tempBuf[256];sprintf( tempBuf, "Player 1's score: %i", p1score );textout( screen, font, tempBuf, ... );In C++:#include <string>#include <sstream>std::stringstream ss;ss << "Player 1's score: " << p1score;textout( screen, font, ss.str().c_str(), ... );Also note that allegro has textprintf routines:textprintf( screen, font, ..., "Player 1's score: %i", p1score );;  Thank you much, the problem's resolved.I ended up using the following line of code, for anyone else in the same predicament: textprintf_ex( buffer, font, 10, 10, makecol(0, 0, 255),-1, "Score: %d", p1score);and then the following at 470, 10 for p2score   