c++ bitmap program

Thanks in advance.

bitmap.cpp in this link https://ufile.io/jm6rb

bitmap.h in this link https://ufile.io/43tep


I'm trying to do this program. but I just need comments as of how the program should be, like a decompose (break into smaller parts).

example:

//declaring variables in type int or char

//while loop to repeatedly ask the user for the photo

//function

etc.....!


Repeatedly asks the user for a file name, until either the user input is just "DONE" or they have entered the maximum number of files allowed: 10.
Print an error for any file name that has problems, including (1) the file doesn't exist or isn't a valid bitmap, or (2) isn't the same dimensions (width and height) as the first image loaded. Either error should disregard that file but continue with the other files. After evaluating all the file names provided, if the user did not provide file names of at least 2 images with the same dimensions, give the user an error message that a composite image cannot be created and do not do anything else in the program.
The program should work with any valid BMP images that are 24bit color depth and uncompressed, regardless of its size.
Combine the valid images together to make a composite image. The composite image should take the average values of RGB components for each pixel. For example, if half the images have a black pixel at (row 0, column 0) and half the images have a white pixel at that same location, the composite image should have a medium-grey pixel at that same location.
As it processes the images, your algorithm should print occasional progress updates, such as "Image 10 of 25 done."

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

#include "bitmap.h"
#include <vector>
#include <string>

using namespace std;

//function

int main (){

//

//

//

//



}
Last edited on
Topic archived. No new replies allowed.