Skip to content

Instantly share code, notes, and snippets.

@astamatto
Last active April 20, 2017 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save astamatto/e0eb3d364d490342d79935c5ca80db47 to your computer and use it in GitHub Desktop.
Save astamatto/e0eb3d364d490342d79935c5ca80db47 to your computer and use it in GitHub Desktop.
string linha;
int matriz[nLinhas][nColunas];
for(int i = 0; i < nLinhas; ++i) {
getline(arquivo, linha);
istringstream fluxo(linha);
for(int j = 0; j < nColunas; ++j) {
fluxo >> matriz[i][j];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment