http://club.**/thread-358219-1-1.html
http://www.doc88.com/p-87482786971.html
http://blog.**/user1/14953/message.html#2715
http://www.doc88.com/p-87482786971.html
http://blog.**/user1/14953/archives/2009/35489.html
编程浪子
http://club.**/forum.php?mod=forumdisplay&fid=119&page=1
using Turbo C to test
#include
int main()
{
int R[]={1,2,3,4,5};
int p,i;
int temp[5];
scanf("%d",&p);
for(int i=0;i<=4;i++)
{
if((i+p)>n-1)
{
temp[i]=R[i+p-n];
}
else
{
temp[i]=R[i+p];
}
}
for(int i=0;i<=4;i++)
{
printf("%d\n",temp[i]);
}
}
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25951437/viewspace-701321/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/25951437/viewspace-701321/