Problem1221--去掉双斜杠注释

1221: 去掉双斜杠注释

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

将C程序代码中的双斜杠注释去掉。

Input

输入数据中含有一些符合C++语法的代码行。需要说明的是,为了方便编程,规定双斜杠注释内容不含有双引号,源程序中没空行。

Output

输出不含有双斜杠注释的C++代码,除了注释代码之外,原语句行格式不变。

Sample Input Copy

//======================
// simplest program
//======================
#include
using namespace std;
//----------------------
int main(){
  cout<<”hello world!\n”;
}//---------------------

Sample Output Copy

#include
using namespace std;
int main(){
  cout<<”hello world!\n”;
}

Source/Category