编写程序删除一个字符串中下标为偶数的所有字符,将剩余字符组成一个新字符串输出

日期:2012-05-14 21:50:31 人气:1

编写程序删除一个字符串中下标为偶数的所有字符,将剩余字符组成一个新字符串输出

#include #include using namespace std; void StringProc(char *s); void main() { char s[100]; cout<<"请输入字符串:"<<endl; cin>>s; StringProc(s); cout<<"处理后的字符串为"<<endl<<s<<endl;
    A+
热门评论