手机短号

#include<stdio.h>
#include<string.h>
int main( )
{
    char ch[15],*p,*q;
    int N,len;
    scanf("%d",&N);
    while(N--)
    {
     scanf("%s",ch);
     len=strlen(ch);
     p=ch;
     q=ch+len;
     printf("6");
     for(p=ch+6;p<q;p++)
     printf("%c",*p);
     puts("");
     }
  return 0;
}

posted on 2011-04-29 22:16  more think, more gains  阅读(143)  评论(0)    收藏  举报

导航