C++
Junior Member level 3
code for inserting image in dev c++
Hi, I've got a simple command line program like this:
What code can I put into that commented line to insert the picture into that file?
Any help is appreciated....
Platform: Windows (XP)
Compiler: Dev-C++/MSVC++
Hi, I've got a simple command line program like this:
Code:
#include <iostream>
#include <fstream>
using namespace std;
int main () {
ofstream file;
file.open ("Test.doc");
file << "This is an image inserted into this file with C++!" << endl;
// Somehow insert an image below that line <-- dont know how
file << "This line was inserted after the image!";
file.close ();
cout << "Press ENTER to exit . . .";
cin.get ();
return 0;
}
What code can I put into that commented line to insert the picture into that file?
Any help is appreciated....
Platform: Windows (XP)
Compiler: Dev-C++/MSVC++