Cod sursa(job #1314719)

Utilizator goalexboxerFMI Alexandru Ionascu goalexboxer Data 12 ianuarie 2015 10:50:40
Problema Trie Scor 0
Compilator cpp Status done
Runda Arhiva educationala Marime 0.81 kb
#include<stdio.h>
#define FIN "trie.in"
#define FOUT "trie.out"
using namespace std;

typedef struct Trie
{
    int numOfChildren = 0;
    int prefixex = 0;
    char value;
    Trie* children[26];
} Trie;

Trie* myTrie = new Trie();

inline void op0(char word[20])
{


}

int main()
{
    char line[32];



    freopen(FIN, "r", stdin);
    freopen(FOUT, "w", stdout);

    fgets(line, 32, stdin);

    while( !feof(stdin))
    {
        switch(line[0])
        {
            case '0':
                op0(line[2]);
                break;
            case '1':
                op1(line[2]);
                break;
            case '2':
                op2(line[2]);
                break;
            case '3':
                op3(line[2]);
                break;
        }

        fgets(line, 32, stdin);
    }

    return 0;

}