printhvelxy.c
来自「seismic software,very useful」· C语言 代码 · 共 29 行
C
29 行
#include "velo.h"#include "par.h"/* print handvel cards *//* zhiming li */void printhvelxy(int cdp, float x, float y, int ntv, float *tout, float *vout, FILE *outfp) { int ic, ip, nc; float p1, p2; if(ntv>0) fprintf(outfp,"HANDVEL %10d %15.2f %15.2f\n",cdp, x, y); for(ic=0;ic<ntv;ic=ic+4) { nc = 4; if(ic+nc>ntv) nc = ntv - ic; for (ip=0;ip<nc;ip++) { p1 = tout[ic+ip]; p2 = vout[ic+ip]; fprintf(outfp,"%8.1f%8.1f",p1,p2); } fprintf(outfp,"\n"); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?