a2pbm.c

来自「快速傅立叶变换程序代码,学信号的同学,可要注意了」· C语言 代码 · 共 48 行

C
48
字号
/* A2pbm.c reads in an alist and writes a pbmnot writtenI wrote A2dat.p instead*/#include "./ansi/r.h"#include "./ansi/rand.h"#include "./ansi/mynr.h"typedef struct {  int N , M ;  int **mlist;  int **nlist;  int *num_mlist;  int *num_nlist;  int *l_up_to ;  int *norder ;  int biggest_num_m ;  int biggest_num_n ;   int tot ; } alist_matrix ;typedef struct {  alist_matrix *a ;} param;void main ( int argc, char *argv[] ){  unsigned char  **A ;  char 	pbm_ofile[50] = "A.pbm" ;  int          pbm_o = 1 , pbm_xv = 0 ;   A = cmatrix ( 1 , M , 1 , L ) ;   fp = fopen ( pbm_ofile , "w" ) ;  cmatrix2pbm ( A , 1 , M , 1 , L , fp ) ;   fclose ( fp ) ;       if ( pbm_xv ) {	sprintf ( junk , "xv %s -geometry +10+10 &" , pbm_ofile ) ;	system ( junk ) ;      }    }  }  /* end if radford_rep == 0 */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?