Программа считывает весь текст с файла в массив, но выдает ошибку

#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <string.h>
#include <iomanip>
#include <stdio.h>
using namespace std;
struct fionumberdate {
    string fio;

};
int main() {
    setlocale(0, "");
    int i = 0, count = 0;
    char* S2 = new char[count];
    string str;
    cout << "Введите указанный месяц -\n";
    int mounth;
    cin >> mounth;
    ofstream fout;
    fout.open("Param.ini");
    fout << mounth;
    for (i = 0; i < count; i++) S2[i] = NULL;
    ifstream mout("mamamilaramu.txt");
    i = 0;
    while (!mout.eof()) {
        mout.get(S2[i]);
        i++;
    }
    mout.close();
}

введите сюда описание изображения


Ответы (0 шт):