ream.h"Р#include"stdlib.h"Р#include"time.h"Рvoid main()Р{Р?int a[10],b[10];Р?int m,i,j;Р?cout<<"移动前数据"<<endl;Р?srand((unsigned)time(NULL));Р?for (i=0;i<=9;i++)Р?{Р a[i]=rand();Р cout<<a[i]<<'\t';Р?}Р?cout<<"输入右移的位数"<<endl;Р?cin>>m;Р?cout<<"右移"<<m<<"位后数据"<<endl;Р?for(i=0;i<=9;i++)Р?{Р j=i-m;Р if(j<0) j=j+10;Р b[i]=a[j];Р cout<<b[i]<<'\t';Р?}Р}Р?Р5-5Р#include"iostream.h"Р#include"iomanip.h"Рvoid main()Р{Р?int a[11][11];Р?int i,j,n;Р?cout<<"输入行数:";Р?cin>>n;Р?cout<<endl;Р?for (i=1;i<=n;i++)Р?{Р a[i][1]=1;Р a[i][i]=1;Р?}Р?for (i=3;i<=n;i++)Р for (j=2;j<=i-1;j++)Р a[i][j]=a[i-1][j]+a[i-1][j-1];Р for (i=1;i<=n;i++)Р {Р for (j=1;j<=n-i;j++)Р cout<<" ";Р for (j=1;j<=i;j++)Р cout<<setw(3)<<a[i][j]<<" ";Р cout<<endl;Р }Р}Р5-6?Р#include "iostream.h"Р#include "string.h"Р#include "stdio.h"Рvoid main()Р{