#include <iostream>
#include <stack>
#include <fstream>
#include <cstdio>
int main() {
FILE *fp = fopen("main.cpp", "r");
if (!fp) {
std::cerr << "Error" << std::endl;
return 1;
}
// Google
char ch, nextCh; // Google
while ((ch = fgetc(fp)) != EOF) {
if ('/' == ch) {
nextCh = fgetc(fp);
if ('/' == nextCh) {
while (((ch = fgetc(fp)) != EOF)) {
if ('\n' == ch) {
std::cout << std::endl;
break;
}
}
} else if ('*' == nextCh) {
while ((ch = fgetc(fp)) != EOF) {
if ('*' == ch) {
nextCh = fgetc(fp);
if (nextCh == EOF || '/'
== nextCh) {
break;
}
}
}
} else {
std::cout << /**Commentar*/ch << nextCh;
}
/**Commentar*/
/**Com
* mentar*/
} else {
std::cout << ch;
}
}
/***********\\\/////// */
///**//
return 0;
}