#include<iostream.h>
#include<iostream.h>
#include<fstream.h>
#include<malloc.h>
#include<conio.h>
#include<stdlib.h>
int **CreateImage(int , int);
int main(void)
{
char buffer[1200];
ifstream inFile("22354.bmp");
if (!inFile);
{
cout << "Unable to open the file\n";
return 1;
}
while (inFile >> buffer)
cout << buffer << endl;
inFile.close();
return 0;
int **myImage = NULL;
myImage = CreateImage(1200,1200);
}
int **CreateImage(int m, int n)
{
int **pt = (int ** ) malloc (n * sizeof (int));
if (pt == NULL)
{
cout << "not enough memory";
getch();
exit(0);
}
return pt;
}