#include "test.h"
int main()
{
string str;
cin >>str;
string str1;
for (string::size_type st = 0; st != str.size(); st++)
{
if (!ispunct(str[st])) //如果不是标点,加到另一个字符串中
{
str1 += str[st];
}
}
cout << str1;
return 0;
}
#include <cctype>
#include <iostream.h>
int main()
{
string str;
cin >>str;
string str1;
for (string::size_type st = 0; st != str.size(); st++)
{
if (!ispunct(str[st])) //如果不是标点,加到另一个字符串中
{
str1 += str[st];
}
}
cout << str1;
return 0;
}