
编程可用素材:printf("\nthe score of No %d are:"…、printf("%6.1f"…。
#include
#define N 3
#define M 4
using namespace std;
int main()
{
int score[N][M];
int i,j;
cout<<"请输入孙运让您的数组:"< //首先输入你悄态的数组 for (i=0;i { for (j=0;j { cin>>score[i][j]; } } int (*p)[M]=score; cout<<"请输入您要查询的学生的序号(0,1,2):"< int n; cin>>n; p=&score[n]; cout<<"第"< //下面是输出你的数组,完全指针 for (int *q=*p;q!=*p+4;q++) { cout<<*q<<" "; } cout< return 0; }
int score[3][4];
for(int i = 0 ; i <薯闹 3)
for(int j = 0 ; j <数李罩扰此 4 ; j ++)
{
scanf("%d" , score);
score++;
}