Department of Scientific Computing   
Institute for Numerical Simulation   
University of Bonn   
Documentation
Download
Programming References
Bug Reports / Suggestions
FAQ
Authors
Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

numdiff.cc

00001 /* Programm zum Berechnen der Differenz zweier WerteTabellen */
00002 
00003 #include<stdio.h>
00004 #include<stdlib.h>
00005 #include<string.h>
00006 
00007 int main(int argc,char **argv) {
00008 
00009   FILE *fid1=fopen(argv[1],"r") ;
00010   FILE *fid2=fopen(argv[2],"r") ;
00011 
00012   double x1,x2 ;
00013   int i=0 ;
00014   while (!feof(fid1)) {
00015     fscanf(fid1,"%le",&x1) ;
00016     fscanf(fid2,"%le",&x2) ;
00017     printf("%d %e %e %e\n",i,x1,x2,x1-x2) ;
00018     i++ ;
00019   }
00020 }

Generated at Mon Aug 19 10:02:32 2002 for AWFD by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001