Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Please can someone help me complete the code below so that it will be able to re

ID: 1856663 • Letter: P

Question

Please can someone help me complete the code below so that it will be able to read its own ".cpp" file and count the number of "{"s in the file. And, also read its own ".exe" file and write out ONLY the ASCII codes contained therein. Thank You in advance!!! Here is the code: #include #include #include using namespace std; int main() { ifstream fin; string sIn; fin.open("c:\Users\Doc\documents\visual studio 2010\Projects\Lab6_PN\Lab6_PN\Lab6_PN.cpp"); if(fin.fail()) { cout << "Ooooops!" << endl; return 2;} while(!fin.eof()) { fin >> sIn; cout << sIn <<" "; } fin.close(); return 0; }

Explanation / Answer

your code is all mixed please repost it