The problem was to write a program that reads a .cpp file containing a C++ program and produces a file with all comments stripped from the program.
I finally got the answer.
Here it is if someone want it as no one could do it : P
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
void remove_comments...
User Profile
Collapse
-
I managed to remove comments froma cpp file
-
Actually, I managed to remove all the comments written after "//"
but the problem is in the case of ' /* '.... -
Please someone help me out to do it
How to write a program that reads a .cpp file containing a C++ program and produces a file with all comments stripped from the program.
No activity results to display
Show More
Leave a comment: