//* This is a test program for removing */ /* and // comments #include /* remove me */ // A C++ style comment goes to end of line /* A C style comment can span lines and goes to */ using namespace std; // remove me /* A C style comment spans across multiple lines and should ignore any // or /* within it */ int /* remove me */ main() // "remove me" too // A C++ style comment should ignore any /* or */ or // within it { //////////////// another C++ comment //////////////// /*************** another C comment *****************/ int a=10/* a C comment followed by division *//2;// should be 5 /* should print 5: */cout << a << '\n'; /* remove me */ cout << "Keep /* C */ and // C++ comments in strings\n";/*remove me*/ cout << "Beware \" embedded quotes // keep me /* keep me\n";//remove me cout << "Don't \"remove \"*/ me//either!\n";/*remove me*///and "me" /* Closing C comments can't be commented // like this */ cout << /* comment ends " */ "here\n"; return 0; /* "remove \" me */ }