#include<iostream> #include<string.h> using namespace std; int main() { char str[82]; gets(str); for(int i=0;i<strlen(str);) { if('0'<=str[i]&&str[i]<='9') { cout<<str[i]; i++; } else { for(int j=i;j<strlen(str);j++) { i++; if('0'<=str[i]&&str[i]<='9') break; } cout<<"*"; } } } |
Double click to view unformatted code.