From 7c3df7b21accc473718d3cd5702e361c3b98ece3 Mon Sep 17 00:00:00 2001 From: Marcela Ribeiro de Oliveira <mro15@inf.ufpr.br> Date: Wed, 25 Apr 2018 18:21:47 -0300 Subject: [PATCH] modificando o bad file --- playunfair.cpp | 5 +---- teste3.in | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/playunfair.cpp b/playunfair.cpp index b318631..72c25f1 100644 --- a/playunfair.cpp +++ b/playunfair.cpp @@ -19,7 +19,6 @@ int main(int argc, char *argv[]){ inputName = argv[1]; outputName = argv[2]; - //TODO: ELE TA LENDO CAGADO JA, olha o fim desse comment input.open(inputName, std::ifstream::in); if(!input.good()){ std::cout << "Nao foi possivel abrir o arquivo de entrada" << std::endl; @@ -29,9 +28,7 @@ int main(int argc, char *argv[]){ while(std::getline(input, aux)) text << aux; - std::cout<<text.str()[0] << std::endl; - //TODO: ERRO ACABA AQUI, veja o resultado disso aqui^ com o teste3.in - return 0; + std::cout<<text.str()[2] << std::endl; crip = text.str(); parser(crip); std::cout << crip << std::endl; diff --git a/teste3.in b/teste3.in index 9a75b68..8dbdc75 100644 --- a/teste3.in +++ b/teste3.in @@ -1 +1 @@ -youshallnot pas +youshallnot pass -- GitLab