Skip to content

Commit

Permalink
array
Browse files Browse the repository at this point in the history
This program is used to leran the array
  • Loading branch information
feihun1 committed Apr 1, 2017
1 parent facf943 commit 2f33d2d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cpp one.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//The use of the array:
#include <iostream>
#include <array>
int main()
{
using namespace std;
int a, b, c;
cin >> a >> b >> c;
array <int, 3> ar; //Pay attention to the array
ar = { a,b,c };
cout << (a + b + c) / 3;
cin.get();
cin.get();
return 0;
}

0 comments on commit 2f33d2d

Please sign in to comment.