Diferente pentru parsare-fisier-iesire intre reviziile #9 si #8

Nu exista diferente intre titluri.

Diferente intre continut:

using namespace std;
class OutParser
class OutputPrinter
{
public:
    OutParser () {}
    OutParser (char *file_name) {output_file = fopen (file_name, "w"); memset (sir, 0, sizeof (sir));}
    OutParser &operator << (int val)
    OutputPrinter () {}
    OutputPrinter (char *file_name) {output_file = fopen (file_name, "w"); memset (sir, 0, sizeof (sir));}
    OutputPrinter &operator << (int val)
    {
        int cif[15];
        cif[0] = 0;
        if (pos >= max_l) CheckFinish ();
        return *this;
    }
    OutParser &operator << (char c)
    OutputPrinter &operator << (char c)
    {
        sir[pos ++] = c;
        if (pos >= max_l) CheckFinish ();
        return *this;
    }
    OutParser &operator << (char *str)
    OutputPrinter &operator << (char *str)
    {
        while (*str)
        {
        }
        return *this;
    }
    ~OutParser () {fprintf (output_file, "%s", sir);}
    ~OutputPrinter () {fprintf (output_file, "%s", sir);}
private:
    FILE *output_file;
    static const int max_l = 50000;

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.