• Bio

    那些名垂青史的英雄,有一大半是卑鄙的骗子和阴谋家,用他们的权势为自己树碑立传且成功了;而那些为正义和真理献身的人,三分之二都默默的惨死在历史的尘埃中,没有人知道他们的存在;剩下的三分之一则在强有力的诬陷下遗臭万年;他们中只有极少数的人得到了历史正确的记忆,其比例连冰山的一角都不到。

    Yesterday is a history,tomorrow is a mystery,only today is a gift,that's why we call it present.

    茧,是凝固的痂……

    片面的真相可以导致完全错误的结果。

    #include<stdio.h> #include<string.h> void getString(char str[]){

    for(int i=0;str[i]!='\0';i++){
    	scanf("%c",str[i]);
    }
    

    } void strCopy(char t[],char s[],int pos,int len){ int length=strlen(s); if(pos<=length&&pos>=0){ for(int i=pos;i<=pos+len;i++){ t[i]=s[i]; } int i; while(t[i]!='\0'){ printf("%c",t[i]); i++;

    }
    }else{
    	printf("error");
    }
    

    }

    int main(){ char str[123],copy[123];

    int pos,len;
    getString(str);
    scanf("%d",&pos);
    scanf("%d",&len);
    strCopy(copy,str,pos,len);
    return 0;
    }
    
  • Recent Activities

    This person is lazy and didn't join any contests or homework.