Question: number 7 Here is my code. im having a hard time trying to open and read my file. i have the text file already under


void Challenge) 104 105 105 107 108 209 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 string buffer; char filename(80); int i; ofstream outputFile; ifstream inputFile; bool first = true; cout > filename; inputFile.open("sentence.txt"); if (inputFile.fail()) cout > filename; outputfile.open(filename); getline(inputFias, buffer); while (inputFilc for (i = ; buffer[1] le "l'; i++) if (isalpha(buffer[:])) if (first) first = false; buffer[i] = toupper(buffer[:]); else buffer[1] = tolower(buffer[:]); else if (buffer[1] - ...) 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 154 first = true; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
