網頁文章 網頁文章

 #include <stdio.h>

#include <stdlib.h>

main()
{
 
char a[20],b[20]; 
char *p,*q;

printf("Please input  1'st string :");
gets(b);
p=b;
printf("1'st 字串是--->%s \n",p);

printf("Please input 2'nd string :");
scanf("%s",a);
q=a;
printf("2'nd 字串是--->%s \n",q);

system ("pause");

}

網站地圖 網站地圖