📄 rmprt.c
字号:
/* rmprt.c CCM mathematics library source code. * * Copyright (C) 2000 Daniel A. Atkinson All rights reserved. * This code may be redistributed under the terms of the GNU general * public license. ( See the gpl.license file for details.) * ------------------------------------------------------------------------ */#include <stdio.h>#include "ccmath.h"char fmt[]=" %7.3f";main(na,av)int na; char **av;{ double *a; int n; FILE *fb; if(na!=2){ printf("para: input_file\n"); exit(1);} fb=fopen(*++av,"rb"); fread((void *)&n,sizeof(int),1,fb); a=(double *)calloc(n*n,sizeof(double)); fread((void *)a,sizeof(double),n*n,fb); printf(" %d\n",n); matprt(a,n,n,fmt);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -