Skip to content
Snippets Groups Projects
Commit 53cc3969 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

tirando espacos e colocando texto em minusculo

parent 2be06c8f
No related branches found
No related tags found
No related merge requests found
CC = g++
CFLAGS = -Wall
CFLAGS = -Wall -std=c++11 -std=gnu++11
INCL = -I ./include
......@@ -12,7 +12,7 @@ EXEC = playunfair
$(EXEC): $(OBJ)
$(CC) $(CFLAGS) -o $@ $^
%.o: %.c $(DEPS)
%.o: %.cpp $(DEPS)
$(CC) $(CFLAGS) -c -o $@ $< $(INCL)
all: $(EXEC)
......
......@@ -3,7 +3,7 @@
#include <vector>
#include <iterator>
#include <sstream>
#include <cctype>
#include <algorithm>
std::vector< char > createKM ( const std::string key);
std::string playfair(std::string text , const std::string key );
#include "include/playfair.h"
#include <fstream>
#include <algorithm>
void parser(std::string &text){
text.erase(std::remove(text.begin(), text.end(), ' '), text.end());
//for(const char &
std::transform(text.begin(), text.end(), text.begin(), ::tolower);
}
int main(int argc, char *argv[]){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment