No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
My code is below. I'm pretty sure my issues are spanning my my .resize(). It's possible I'm doing my hashing completely wrong too, but it was right at one point. This code wont run at all right now, but it compiles. Is there a better way to go about sizing … |
|
[CODE] #include <iostream> // required for input and output #include <fstream> #include <cstdlib> // required for rand() function using namespace std; // function prototypes void storeData(char cellArray[][18]); void printArray(char cellArray[][18]); int checkNeighbors(char cellArray[][18], int row, int col); void makeContagious(char cellArray[][18], int dayArray[][18], int row, int col, int neighbors); int main() … |