Recommanded Free YOUTUBE Lecture: <% selectedImage[1] %>

소개

Related Link 프로젝트 진행중 단어사전을 만들기 위한 목적이다. 조사를 제거하기 위한 모듈로 사용할 것이다.
#include <stdio.h>
#include <string.h>

void invertStr(char *a)
{
    int len, i;
    char b[20] = {0x00,};
    len = strlen(a);
    for (i = 0; i < len; i += 2)
    {
        b[len-i-2] = a[i];
        b[len-i-1] = a[i+1];
    }
    printf("%s\n", b);
}
int main()
{
    int i = 0;
    int len = 0;
    char a[][5] ={"은", "는","이","가","하는","하면","과","나는",""};
    char b[20] = {0x00,};
    char *c;

    c = *a;
    while(strlen(c) > 0)
    {
        printf("%s\n",c);
        invertStr(c);
        c=c+5;
    }
    invertStr("가나다라마바사");
}