Ppm lab help?

I've got a general idea of what I need to do but my professor didnt really explain much so I'm at a loss. Can anyone take a look at the write up and my code and help me finish this? Thanks. https://goo.gl/cnPQcO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <iostream>
#include <vector>
#include <string>
#include <sstream>
#include <fstream>
using namespace std;
struct Pixel{
public:
	int red, green, blue;
	
	Pixel();
	
	Pixel(int red,int green,int blue);
	
	int rowCol(){
	numRows = 0, numColumns = 0;
}
	bool readPpmFile(string inputFile);

	int writePpmFile(string outputFile);

private:
	vector<vector<Pixel> > picture;

	int numRows, numColumns, maxIntensity;
};

int main(int argc, char **argv){
ifstream inputFile;
inputFile.open(argv[1]);
if(argc < 3){
cout << "usage: inputfile outputfile";
return 0;
}

return 0;
}

int rowCol(){
	
}
int writePpmFile(string outputFile){
	
}
Topic archived. No new replies allowed.