This is what i have got so far, i am working on it. Do you think this will work. Remember i have to make Queue of Array. So think that way......
Thanks and Smiles
Code:
#include<iostream.h>
#include<fstream.h>
#include<string>
#include<queue>
class ImageQueue
{
public:
ImageQueue(){
width = 0;
height = 0;
size = 0;
bitCount = 0;
}
~ImageQueue(){
width = 0;
height = 0;
size = 0;
bitCount = 0;
}
void setWidth(int value){
width = value;
}
void setHeight(int value){
height = value;
}
void setSize(int value){
size = value;
}
void setBitcount(int value){
bitCount = value;
}
int getWidth(void){
return width;
}
int getHeight(void){
return width;
}
int getSize(void){
return width;
}
int getBitcount(void){
return width;
}
private:
int width;
int height;
int size;
int bitCount;
unsigned char Frame[1024*700];
};
int main(void)
{
std::queue< ImageQueue > values;
std::string filename = "frame1.raw";
ifstream Inputfile;
Inputfile.open(filename.c_str(),ios::binary);
if(!Inputfile.is_open())
{
cout<<"Cant Open The File"<<endl;
cin.get();
}
while(Inputfile.eof())
{
char c = Inputfile.get();
cout<<c<<endl;
cin.get();
}
return 0;
}