$ g++ main.cpp qdbmp.cpp
Assume that your output file is 'a.out'.
./a.out jpeg_file
After executing a.out, we will get the file 'my_photo.bmp' which is the decoded photo.
$ make
make for compile the decoder
$ ./my_jpeg jpeg_file
type the command above to decode the photo