mirror of
https://git.gfz-potsdam.de/naaice/tug.git
synced 2025-12-13 17:38:23 +01:00
Use range based loop for output.
This commit is contained in:
parent
2465911659
commit
374a7ef9d9
@ -43,8 +43,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
cout << "Iteration: " << i << "\n\n";
|
||||
|
||||
for (int j = 0; j < field.size(); j++) {
|
||||
cout << field[j] << "\n";
|
||||
for (auto & cell : field) {
|
||||
cout << cell << "\n";
|
||||
}
|
||||
|
||||
cout << "\n" << endl;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user