Код: Выделить всё
int main() {
char N[20];
int day,month,year,hour,minute,length;
char group[30],description[100];
std::cin>>N;
std::ifstream data(N);
while(!data.eof()){
data>>day>>month>>year>>hour>>minute>>length>>group>>description;
}
return 0;
}
Код: Выделить всё
23 12 2017 19 25 88 business meeting meeting about new product
п>
Подробнее здесь: https://stackoverflow.com/questions/479 ... -from-file
Мобильная версия