Dynamic memory allocation for matricesalso consider using [b]std::vector[/b]... something like: [code]std::vector<std::vector<int>> matrix...