Given four files named winter2003.txt, spring2003.txt, summer2003.txt, fall2003.txt, define four ifstream objects named wntr, sprg, sumr, and fall, and use them, respectively, to open the four files for reading.
.
.
Click on the title for the solution
.
.
ifstream wntr, sprg, sumr, fall;
wntr.open("winter2003.txt");
sprg.open("spring2003.txt");
sumr.open("summer2003.txt");
fall.open("fall2003.txt");
.
Click on the title for the solution
.
.
This is the answer:
:
ifstream wntr, sprg, sumr, fall;
wntr.open("winter2003.txt");
sprg.open("spring2003.txt");
sumr.open("summer2003.txt");
fall.open("fall2003.txt");
Comments
Post a Comment