Skip to content

Instantly share code, notes, and snippets.

@cengiz-io
Last active August 29, 2015 14:07
Show Gist options
  • Save cengiz-io/7b4eae73ae2b16a142c2 to your computer and use it in GitHub Desktop.
Save cengiz-io/7b4eae73ae2b16a142c2 to your computer and use it in GitHub Desktop.
codeeval challange 20
#ifndef __APPLE__
#include <algorithm>
#endif
#include <iostream>
#include <fstream>
using namespace std;
int main(int argc, char *argv[])
{
ifstream infile(argv[1]);
string line;
while (getline(infile, line))
{
if (line.length() == 0)
continue;
transform(line.begin(), line.end(), line.begin(), ::tolower);
cout << line << endl;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment