2279: 字符串分段(串)
来源:互联网 发布:日本js标准与国内标准 编辑:程序博客网 时间:2024/05/18 17:55
#include<iostream>
#include<cstdio>
#include<cstring>
#include<cctype>
using namespace std;
int main()
{ char a[100];
// freopen("f.txt","r",stdin);
gets(a);
int i=0;
while(!isalnum(a[i]))
i++;
for(;a[i]!='\0';i++)
{ if(!isalnum(a[i]))
{printf("\n");
while(!isalnum(a[i]))
i++;
}
if(isalnum(a[i])) printf("%c",a[i]);
#include<cstdio>
#include<cstring>
#include<cctype>
using namespace std;
int main()
{ char a[100];
// freopen("f.txt","r",stdin);
gets(a);
int i=0;
while(!isalnum(a[i]))
i++;
for(;a[i]!='\0';i++)
{ if(!isalnum(a[i]))
{printf("\n");
while(!isalnum(a[i]))
i++;
}
if(isalnum(a[i])) printf("%c",a[i]);
}
}
}
0 0
- 2279: 字符串分段(串)
- 字符串分段(串)
- 第十五周-字符串分段(串)
- C语言OJ项目参考(2279) 字符串分段(串)
- 第十五周oj训练——字符串分段(串)(2279)
- 字符串分段
- 字符串 分段
- 字符串分段
- 字符串分段
- 第十五周 oj训练 字符串分段(串)
- 字符串分段拆分截取
- MSSQL字符串分段截取
- 字符串分段、替换
- sqlserver 分段截取字符串
- 字符串分段输出
- 将字符串分段
- 将字符串分段
- 第十五周 字符串分段
- 使用SwipeRefreshLayout和RecyclerView实现仿“简书”下拉刷新和上拉加载更多
- 读书笔记之Python基础1.1,
- 简单工厂模式
- HDU 5651 (组合 水~)
- Mac anaconda python mysql
- 2279: 字符串分段(串)
- <div+css页面布局课堂笔记>6---与盒子相关的CSS属性第三部分
- 记
- 关于Integer大小比较的问题
- 常用连接记录
- 行内元素与块级元素的区别
- Retrofit学习一:文档介绍
- HDU 5652 (二分 bfs)
- github的简单学习之旅