Given four files named asiasales2009.txt, europesales2009.txt, africasales2009.txt, latinamericasales2009.txt, define four ofstream objects named asia, europe, africa, and latin, and use them, respectively, to open the four files for writing.
.
.
Click on the title for the solution
.
.
ofstream asia,europe,africa,latin;
asia.open("asiasales2009.txt");
europe.open("europesales2009.txt");
africa.open("africasales2009.txt");
latin.open("africasales2009.txt");
.
Click on the title for the solution
.
.
This is the answer:
:
ofstream asia,europe,africa,latin;
asia.open("asiasales2009.txt");
europe.open("europesales2009.txt");
africa.open("africasales2009.txt");
latin.open("africasales2009.txt");
Comments
Post a Comment