eeee

来源:互联网 发布:pdf合并软件绿色版 编辑:程序博客网 时间:2024/06/05 21:15

#include <stdio.h>

char yihuo(char a,char b)
{
    return (a==1&&b==1)?0:(a|b);
}

void strtran(char *s1,char *s2)
{
     char temp[64]={};
     int len=0,i=0;
     while(*s1)
     {
     temp[i]=*[s1+i];
     i++;
     }
     i=0;
     while(*s2)
     {
               temp[i++]=*s2;
               temp[i++]='0'+yihuo(
     puts(temp);
    
}
int main(void)
{
    char str1[]="1010",str2[]="010111";
    printf("%d %d/n",yihuo(1,1),yihuo(1,0));
    strtran(str1,str2);
    getchar();
    return 0;
}

原创粉丝点击