题解 1507: 蓝桥杯算法提高VIP-去注释

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1507: 蓝桥杯算法提高VIP-去注释

```cpp#includeusingnamespacestd;intmain(){charc;while((c=cin.get())!=EOF)//(c=cin.get())要加(){if(c=='/'){chard=cin.get();if(d=='/'){while((d=cin.get())!

去注释较为容易的做法

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    string s;    bool f=1;    b……