Skip to content

Instantly share code, notes, and snippets.

@logicmd
Created September 15, 2012 18:01
Show Gist options
  • Save logicmd/3729085 to your computer and use it in GitHub Desktop.
Save logicmd/3729085 to your computer and use it in GitHub Desktop.
/*************************************************************************
Author: logicmd
Created Time: 2012/9/12 20:51:57
File Name: Spell Checker.cpp
Description:
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <utility>
#include <algorithm>
using namespace std;
vector<string> dic;
void build()
{
string buffer;
while(getline(cin, buffer) && buffer != "#")
{
dic.push_back(buffer);
}
for(vector<string>::iterator it = dic.begin(); it < dic.end(); it++)
{
cout << *(it) << endl;
}
}
int main()
{
build();
system("PAUSE");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment