Last active
August 29, 2015 14:07
-
-
Save cengiz-io/7b4eae73ae2b16a142c2 to your computer and use it in GitHub Desktop.
codeeval challange 20
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
#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