Skip to content

Instantly share code, notes, and snippets.

@StarOrpheus
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save StarOrpheus/0bf0537ad3da6d9ff14f to your computer and use it in GitHub Desktop.
Save StarOrpheus/0bf0537ad3da6d9ff14f to your computer and use it in GitHub Desktop.
#include <iostream>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <vector>
#include <cstdio>
using namespace std;
int main()
{
vector<string> a, b;
string t;
int c;
while(42)
{
cin >> t;
a.push_back(t);
if((c = getchar()) == '\n')
break;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment