解题思路:
注意事项:
参考代码:
#include<iostream> #include<cstdio> using namespace std; int main() { char str1[201],str2[201]; while(gets(str1)) { int t=0; for(int i=0;str1[i];i++) { if(str1[i]=='@') { t=0; continue; } str2[t]=str1[i]; if(str2[t]=='#') { t--; continue; } t++; } str2[t]='\0'; cout<<str2<<endl; } return 0; }
0.0分
0 人评分
C语言程序设计教程(第三版)课后习题10.1 (C语言代码)浏览:670 |
P1002 (C语言代码)浏览:980 |
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码)浏览:751 |
WU-蓝桥杯算法提高VIP-企业奖金发放 (C++代码)浏览:1176 |
简单的a+b (C语言代码)浏览:817 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:691 |
C语言程序设计教程(第三版)课后习题10.2 (C语言代码)浏览:690 |
单词个数统计 (C语言代码)浏览:1012 |
矩阵的对角线之和 (C语言代码)浏览:1356 |
C二级辅导-统计字符 (C语言代码)浏览:648 |