Mitch wrote:
Built a basic word game for the kids,
using if, else , string input, etc, its kinda cool
I would like to put in some bmp or jpg to color it up a bit.
The books i have do not show how to display a picture,
Please let me know how to simply put in picture files into my program
TIA
Displaying graphics of any kind is going to be extremely
dependent on what platform you are using, and would be extremely
off-topic here. Post this question to a newsgroup related to the
platform you are writing on.
A portable interface such as that provided by SDL can help make
this easy; SDL also includes facilities for loading and
displaying BMP graphics; SDLimage also supports JPG and others.
However, you should know that it is unlikely that you can simply
mix in some calls to your existing code, if you are currently
using standard streams (such as cout) to handle your
input/output: these streams are unlikely to result in things
being displayed in the same place as the graphics: you'll need to
use an entirely different mechanism, possibly drawing the text
directly to the graphics display.
HTH.