Last active
December 10, 2015 18:49
-
-
Save AlexFrazer/4477578 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "image.h" | |
#include "matrix.h" | |
#include <vector> | |
#include <iostream> | |
class image { | |
int main() { | |
matrix *smallMatrix=new matrix; | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdlib.h> | |
#include <vector> | |
class matrix { | |
public: | |
matrix(int in_x, int in_y, std::vector<float> const& in_values) { | |
x=in_x; | |
y=in_y; | |
values=in_values; | |
} | |
int getHeight() { | |
return x; | |
} | |
int getWidth() { | |
return y; | |
} | |
private: | |
int x,y; | |
std::vector<float> values; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment