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 45 46 47 48 49 50
|
#include <iostream>
#include <vector>
#include <string>
//TODO
/*
//1. Figure out how to store map coordinates in other vector.
*/
using namespace std;
void CreateMap(int rows, int columns, vector<vector<char> > vectMap, vector<int> Maps);
void ResizeMap(int rows, int columns, vector<vector<char> > vectMap, vector<int> Maps);
int main()
{
int rows = 20, columns = 30;
vector<vector<char> > vectMap(rows, vector<char>(columns));
vector<int> Maps;
Maps.push_back(/*???*/);
/* Pseudo code
vector push back rows and columns;
*/
CreateMap(rows, columns, vectMap, Maps);
return 0;
}
void CreateMap(int rows, int columns, vector<vector<char> > vectMap, vector<int> Maps)
{
for(int i = 0; i < rows; i++)
{
for(int j = 0; j < columns; j++)
{
vectMap[i][j] = '.';
cout << vectMap[i][j];
}
cout << endl;
}
}
void ResizeMap(int rows, int columns, vector<vector<char> > vectMap, vector<int> Maps)
{
}
|