Skip to content

Commit

Permalink
Update ex3_31.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy committed Jun 20, 2015
1 parent 38aa92b commit ea86b12
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions ch03/ex3_31.cpp
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
#include <iostream>

using std::cout; using std::endl;

int main()
{
int ia[10];
for (auto i = 0; i < 10; ++i)
ia[i] = i;

for (auto i : ia)
cout << i << " ";
int arr[10];
for (auto i = 0; i < 10; ++i) arr[i] = i;
for (auto i : arr) cout << i << " ";
cout << endl;
}

return 0;
}

0 comments on commit ea86b12

Please sign in to comment.