Skip to content
Snippets Groups Projects
Commit 113a70e9 authored by Eduardo Machado's avatar Eduardo Machado
Browse files

comecei

parents
No related branches found
No related tags found
No related merge requests found
Makefile 0 → 100644
# Implementado por: Eduardo Machado e Victor Perszel
# 2015
CC=g++
LIB=./lib
INCLUDE=./include
SRC=./src
OBJ=./obj
FLAGS = -Wall
main: connectionRawSocket messages
$(CC) $(SRC)/main.cpp $(OBJ)/connectionRawSocket.o $(OBJ)/messages.o $(FLAGS) -I$(INCLUDE) -L$(LIB) -o connection
connectionRawSocket:
$(CC) -c $(SRC)/connectionRawSocket.cpp $(FLAGS) -I$(INCLUDE) -o $(OBJ)/connectionRawSocket.o
ar -cru $(LIB)/connectionRawSocket.a $(OBJ)/connectionRawSocket.o
messages:
$(CC) -c $(SRC)/messages.cpp $(FLAGS) -I$(INCLUDE) -o $(OBJ)/messages.o
ar -cru $(LIB)/messages.a $(OBJ)/messages.o
clean:
rm connection $(SRC)/*~ $(OBJ)/*o $(LIB)/*a
// Implementado por Eduardo Machado e Victor Perszel
#include <iostram>
#include <string>
using namespace std;
class LZW{
private:
int dictionarySize = 256;
public:
compact(const string &input){
DICT dictionary[];
//inicializa o dicionário
for (i=0; i<dictionarySize; i++){
dictionary.str[0]=i;
}
string nextChar, currentChar = "";
int i;
for(i = 0; i < input.size(); i++){
nextChar = input[i];
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment