Òѽâ¾öÎÊÌâ
¹È¸èw123_2015_2015Óû§ÔÚ2015.10.25Ìá½»Á˹ØÓÚ¡°º£×Ó½«Á½¸ö×Ö·û´®Á¬½ÓÔÚÒ»Æ𡱵ÄÌáÎÊ£¬»¶Ó´ó¼ÒÓ¿Ô¾·¢±í×Ô¼ºµÄ¹Ûµã¡£Ä¿Ç°¹²ÓÐ1¸ö»Ø´ð£¬×îºó¸üÐÂÓÚ2024-11-14T12:39:00¡£#include<stdio.h>
typedefstruct
{
chara[100];
intlen;
}str;
voidoutput(str*s)
{
inti;
for(i=0;i<strlen(s);i++)
printf("%c",s->a[i]);
}
voidmain()
{
inti,j;
str*s,*t;
s->a[5]="ascde";
t->a[3]="qaz";
if(s->len+t->len<=100)
for(i=s->len;i<s->len+t->len;i++)
for(j=0;j<t->len;j++)
s->a[i]=t->a[j];
output(s);
}
ÏêϸÎÊÌâÃèÊö¼°ÒÉÎÊ£º
#include<stdio.h>
typedefstruct
{
chara[100];
intlen;
}str;
voidoutput(str*s)
{
inti;
for(i=0;i<strlen(s);i++)
printf("%c",s->a[i]);
}
voidmain()
{
inti,j;
str*s,*t;
s->a[5]="ascde";
t->a[3]="qaz";
if(s->len+t->len<=100)
for(i=s->len;i<s->len+t->len;i++)
for(j=0;j<t->len;j++)
s->a[i]=t->a[j];
output(s);
}