Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C++ Image Handling

Name: Anonymous 2009-05-11 16:00

How do I display images in C++?

Name: Anonymous 2009-05-11 16:23

#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;
}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List