Question: #include #include #include using namespace std; void reverseString(string& str) { int n =str.length(); for (int i=0; i } ifstream infile1(textfile2.txt); ofstream outfile2(textfilereverse.txt); if (!outfile2) {

#include #include #include using namespace std;

void reverseString(string& str) { int n =str.length(); for (int i=0; i

} ifstream infile1("textfile2.txt"); ofstream outfile2("textfilereverse.txt");

if (!outfile2) { cout<< "Reverse file could not be created"<

}} infile.close(); outfile.close(); outfile1.close(); outfile2.close(); return 0;

}

Im having an issue with reversing the string then writing it to a file at the final step of this code , can someone pinpoint me to what im doing wrong

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!