如何用C++统计一句句子中,(文字,符号,数字)的数量及对应的字串如下面的例子Enter the string to be processed :Hello ,Today is 7 / 11 .Nice .4 word(s):\x05Hello\x05Today\x05is\x05Nice4 symbols(s):\x05,\x05/\x05.\x05.2 inte
来源:学生作业帮助网 编辑:作业帮 时间:2024/12/01 15:39:23
xR1K@\Z#BzB.j8
kN]c.I8{ﻏw}wS{['n,g2eFX0)NOʠQ0>GQt9ÏQ
Z+΄-^j&ĮGq
ز((
Av9آ.Jtac{aIjE " L5ej/"@7]ƟԞ@ҿ5B|%R5݉,/@t)۴j̬DӶQ1L1*ʃ:%SiHcӣ. "917jrB&-!LZt_lĻ}a
如何用C++统计一句句子中,(文字,符号,数字)的数量及对应的字串如下面的例子Enter the string to be processed :Hello ,Today is 7 / 11 .Nice .4 word(s):\x05Hello\x05Today\x05is\x05Nice4 symbols(s):\x05,\x05/\x05.\x05.2 inte
如何用C++统计一句句子中,(文字,符号,数字)的数量及对应的字串
如下面的例子
Enter the string to be processed :Hello ,Today is 7 / 11 .Nice .
4 word(s):\x05Hello\x05Today\x05is\x05Nice
4 symbols(s):\x05,\x05/\x05.\x05.
2 integers(s):\x057\x0511
如何用C++统计一句句子中,(文字,符号,数字)的数量及对应的字串如下面的例子Enter the string to be processed :Hello ,Today is 7 / 11 .Nice .4 word(s):\x05Hello\x05Today\x05is\x05Nice4 symbols(s):\x05,\x05/\x05.\x05.2 inte
#include
#include
#include
using namespace std;
void main()
{
vector digit;
vector word;
vector symbol;
string str;
cout