C语言编程: 编写程序,将字符数组a[6]={'a','b','c','d','e','f'}循环
C语言编程: 编写程序,将字符数组a[6]={'a','b','c','d','e','f'}循环
日期:2017-09-23 13:52:11 人气:1
一下代码仅供参考;
#include int main(){ char a[6] = {'a', 'b', 'c', 'd', 'e', 'f'}, t; int i; t = a[5]; for (i = 5; i > 0; --i){ a[i] = a[i-1]; } a[0] = t; for (i = 0; i < 6; ++i){