Chào các bạn! Vì nhiều lý do từ nay Truyen2U chính thức đổi tên là Truyen247.Pro. Mong các bạn tiếp tục ủng hộ truy cập tên miền mới này nhé! Mãi yêu... ♥

CSLT xâu kí tự

#include<stdio.h>                   GHEP XAU

#include<conio.h>

#include<math.h>

#include<string.h>

#define dodaixau 100

void nhapxau(char s[dodaixau],char p[dodaixau])

{

     printf("nhap hai xau : ");

     gets(s);

     gets (p);

 }

 void xuatxau(char s[dodaixau],char p[dodaixau])

 {

      puts (s);

      puts (p);

  }

void ghep2xau(char s[dodaixau], char p[dodaixau])

{

     if (dodaixau> strlen(s)+strlen(p))

     printf ("

ghep hai xau ta duoc: %s",strcat(s,p));

     else

     printf ("

khong du do dai");

 }

int main()

{

    char s[dodaixau],p[dodaixau];

    nhapxau(s,p);

    xuatxau(s,p);

    ghep2xau (s,p);

    getch();

}

Bạn đang đọc truyện trên: Truyen247.Pro

Tags: #chybi