HRBUST - 1556手机号码簿

HRBUST - 1556手机号码簿_第1张图片
HRBUST - 1556手机号码簿_第2张图片

#include
#include
#include
#include
#define LL long long


int main()
{
    char s1[] = {"0987654321"}, s2[] = {"1234567890"};
    char a[3], b[3];
    //int t;
    strncpy(a, s1+3, 3);
    strncpy(b, s2+3, 3);
    //t = strcmp(a, b);
    //printf("%d", t);
    printf("%s %s", a, b);
    return 0;
}

你可能感兴趣的:(哈理工oj)