symons

___________每一天都是幸福的!!

  博客园  ::  :: 新随笔  ::  :: 订阅 订阅  :: 管理
#include <stdio.h>
#include <malloc.h>
int main(){
    char str[20];
    char *p;
    int t;
    p=(char *)malloc(100);
    scanf("%d",&t);
    getchar();
    while(t--){
        gets(str);
        p=&str[6];
        printf("6%s\n",p);
    }
    return 0;
}

 

posted on 2013-11-04 16:44  symons  阅读(123)  评论(0编辑  收藏  举报