No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I run the program and nothing prints out.. #include <iostream> #include <vector> #include <windows.h> using namespace std; void check_neighbors(vector<vector<char> >, int [22][88]); void generation(vector<vector<char> >); void display(vector<vector<char> >); int main() { vector<vector<char> > world(22, vector<char>(88, '.')); int neighborArray[22][80]; //Intial condiion world[3][3] = '*'; world[3][4] = '*'; world[4][4] = '*'; world[3][7] … |
|
I keep getting a run time error, i think i has to do with the generate and/or checkNeighbor methods [CODE] #include <iostream> #include <vector> #include <windows.h> using namespace std; void display(vector<vector<char> > grid) { for(int x = 0; x < grid.size(); x++) { for(int y = 0;y < grid[x].size();y++) { … |
|
Im trying to cin >> a string consisted of numbers and letters such as 3j4583 and storing each separate char to a separate index of an array can u help provide the proper syntax? |
|
Im trying to take input data from a user as a string of number or letters and store each char on a different array, whats the proper syntax fro this? |