#include <stdio.h> int main(int argc, char **argv) { char a[] = {"aaa"}; char b[] = {"bbbbbbb"}; int i = -1; do { i++; *(b+i) = *(a+i); }while(*(b+i) != '\0' || *(a+i) != '\0'); printf("%s\n",a); printf("%s\n",b); return 0; }
[此贴子已经被作者于2017-1-19 06:30编辑过]