Name: Anonymous 2009-05-11 16:00
How do I display images in C++?
#include <bitmap>
#include <iostream>
using std::bitmap;
using std::cout;
using std::cerr;
using std::endl;
int main(int argc, char **argv) {
bitmap yhbt = "C:/Documents and Settings/Luser/Desktop/Sepples.png";
if (!yhbt.isvalid()) {
cerr << "YHBT, try www.google.com" << endl;
return -1;
}
cout << bitmap << endl;
return 0;
}