Last active
April 20, 2017 01:13
-
-
Save astamatto/e0eb3d364d490342d79935c5ca80db47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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