Created
January 5, 2017 20:36
-
-
Save hackcasual/06408f8599907c72fc5e0e4a4c85f565 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
void print_some_nums(vector < double > nums) { | |
for (auto val: nums) | |
cout << val << endl; | |
} | |
int main(int argc, char * argv[]) { | |
print_some_nums({ | |
10, | |
-20, | |
40, | |
-25, | |
65.5, | |
-200, | |
0, | |
30, | |
0, | |
0, | |
10, | |
-20, | |
40, | |
0, | |
0, | |
0, | |
10, | |
-20, | |
40, | |
-25, | |
65.5, | |
-200, | |
0, | |
30 | |
}); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment