Skip to content

Instantly share code, notes, and snippets.

@cristianrasch
Created December 5, 2011 17:46
Show Gist options
  • Save cristianrasch/1434530 to your computer and use it in GitHub Desktop.
Save cristianrasch/1434530 to your computer and use it in GitHub Desktop.
A blast from the past
// 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