摘要:
1 int ArrayShift(int a[], int n, int m) 2 { 3 int at[MAXN]; 4 5 m = m % n; 6 for (int i = 0; i < m; i++) 7 { 8 at[i] = a[n - m + i]; 9 } 10 for (int i 阅读全文
posted @ 2019-12-19 14:07
jason2018
阅读(452)
评论(0)
推荐(0)
摘要:
1 void Shift(char s[]) 2 { 3 char st1[MAXS]; 4 char st2[MAXS]; 5 strcpy(st1, s); 6 st1[3] = '\0'; //st1字符串中只有s字符串的前3个字符 7 strcpy(st2, s + 3); //st2字符串 阅读全文
posted @ 2019-12-19 10:51
jason2018
阅读(1109)
评论(0)
推荐(0)

浙公网安备 33010602011771号