Created
December 5, 2011 17:46
-
-
Save cristianrasch/1434530 to your computer and use it in GitHub Desktop.
A blast from the past
This file contains 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
// c++ | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int main() | |
{ | |
vector<int> vec; | |
vec.push_back(1); | |
vec.push_back(4); | |
vec.push_back(8); | |
vector<int>::iterator it; | |
for(it = vec.begin(); it != vec.end(); it++) | |
cout << *it << " "; | |
} | |
# ruby | |
print [1,4,8].join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment