Home > Back-end >  Help leaders a c
Help leaders a c

Time:09-30

The code is as follows:
#include
#include
#include
#include
using namespace std;
Int main () {
Ifstream is (" D://date. TXT ", ios_base: : in);
if(! Is) {
Cerr<& lt;" The error ";
The exit (EXIT_FAILURE);
}
Char \ [11].
String rm [12]={" Jan ", "Feb", "Mar", "Apr" and "May", "June" and "out", "Aug", "Sept, Oct, Nov, Dec"};
String t;
Int the month;
Int year;
Int day;
while(! Is the eof ()) {
Is. Getline (temp, 11, '; ');
CoutT=temp;
CoutDay=stoi (t.s ubstr (0, 2));
The month=stoi (t.s ubstr (3, 2));
Year=stoi (t.s ubstr (6, 4));
Cout}
return 0;
}
The date. The contents of the TXT for 01/01/2011; 01/02/2012;
When I step through the while loop control conditions seems doesn't work, complains

This is why

CodePudding user response:

CodePudding user response:

  • Related