删除C中的标点符号 [英] remove punctuation in C

查看:166
本文介绍了删除C中的标点符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

有谁可以帮我写一个删除空格,分号等的函数?

ty。

解决方案

你对如何识别字符串中的标点符号或空格字符有什么建议吗?


所以,我认为当你使用remove_punc函数时,你必须编写脚本,使其保留在字符中,同时删除punctions。



所以,我想当你使用remove_punc函数时,你必须编写脚本,以便它保留在字符中,同时删除punction。



是的,大概是为什么你把它称为删除标点符号函数,而不是保留标点函数或其他东西。我们不确定你的问题是什么。你请求帮助,但没有必要。我们都在这里帮助。


但你的问题是什么?


hey,
can anyone help me write up a function to remove space, semicolons, etc?
ty.

解决方案

Do you have any suggestions for how you might recognize punctuation or space characters in a string?


so, i think when you are using the remove_punc function, you have to write the script so that it keeps in the characters, while removing the punctions.


so, i think when you are using the remove_punc function, you have to write the script so that it keeps in the characters, while removing the punctions.

Yes, presumably it?s why you called it a remove punctuation function, as opposed to retain punctuation function or something. We aren?t sure what your question is though. You requested help, but that?s not necessary. We are all here to help.

But what is your question?


这篇关于删除C中的标点符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆