bug sous osx

This commit is contained in:
krilius 2015-04-29 20:52:18 +04:00
parent 9fbd4e0fed
commit e241abc9df
5 changed files with 16 additions and 16 deletions

View file

@ -19,9 +19,9 @@ Cell::~Cell()
}
// Description
/*
void Cell::description()
std::string Cell::description()
{
return m_value;
}
*/

View file

@ -21,7 +21,7 @@ class Cell
~Cell();
// Describes the cell in a terminal
//std::string description();
std::string description();
};

View file

@ -1,6 +1,6 @@
#include "Grid.hpp"
/*
Grid::Grid(int size)
{
m_table = std::vector<std::vector<Cell*> >(size);
@ -19,20 +19,20 @@ Grid::~Grid()
{
for(int i = 0 ; i < m_table.size() ; i++)
{
for(int i = 0 ; j < m_table[i].size() ; j++)
for(int j = 0 ; j < m_table[i].size() ; j++)
delete m_table[i][j];
}
}
void Grid::description()
void Grid::afficher()
{
for(int i = 0 ; i < m_table.size() ; i++)
{
for(int j = 0 ; j < m_table[i].size() ; i++)
for(int j = 0 ; j < m_table[i].size() ; j++)
{
std::cout << m_table[i][j]->description();
}
std::cout << std::endl;
}
}
*/

View file

@ -11,7 +11,7 @@
#include <vector>
#include "Cell.hpp"
/*
class Grid
{
private:
@ -20,8 +20,8 @@ class Grid
public:
Grid(int size);
~Grid();
void description();
void afficher();
};
*/
#endif

View file

@ -5,9 +5,9 @@
int main()
{
// Grid * grid = new Grid();
Grid * grid = new Grid(4);
// grid->description();
grid->afficher();
return 0;
}