《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
256 B

  1. #include <stdio.h>
  2. #define NUM 1024
  3. #define COUNT 10
  4. int A[NUM][NUM];
  5. void main (void) {
  6. int i,j,k;
  7. for (k = 0; k<COUNT; k++)
  8. for (i = 0; i < NUM; i++)
  9. for (j = 0; j < NUM; j++)
  10. A[i][j] = i+j;
  11. printf("%d count computing over!\n",i*j*k);
  12. }