Skip to content

Instantly share code, notes, and snippets.

@hackcasual
Created January 5, 2017 20:36
Show Gist options
  • Save hackcasual/06408f8599907c72fc5e0e4a4c85f565 to your computer and use it in GitHub Desktop.
Save hackcasual/06408f8599907c72fc5e0e4a4c85f565 to your computer and use it in GitHub Desktop.
#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