close

#include <stdio.h>

int main(void) {
    char str[20]={};
    int length = sizeof(str)/sizeof(str[0]);
    printf("請輸入字串:");
    gets(str);
    int i;
    for(i = 0; i < 8; i++) {
        printf("%c ", str[i]);
    }
   
    putchar('\n');
    for(i = 8; i < length; i++) {
        printf("%c ", str[i]);
    }
   
    putchar('\n');

    system("PAUSE");
    return 0;
   
}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Walter Blyss 的頭像
    Walter Blyss

    Walter Blyss的部落格

    Walter Blyss 發表在 痞客邦 留言(4) 人氣()