xDefo

eee

May 21st, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.78 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5. double BinStart,BinEnd,RateHitEvents,RateHitEventsErr,RateTrackEvents,RateTrackEventsErr,FractionTrackEvents,FractionTrackEventsErr,IndoorTemperature,OutdoorTemperature,Pressure,UniqueRunId;
  6. int main() {
  7.     FILE * pFile;
  8.     FILE * cFile;
  9.     pFile = fopen("input.txt","r");
  10.     cFile = fopen("output.txt","w");
  11.     while(!feof(pFile))
  12.     {
  13.             fscanf(pFile,"%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf,%lf",&BinStart,&BinEnd,&RateHitEvents,&RateHitEventsErr,&RateTrackEvents,&RateTrackEventsErr,&FractionTrackEvents,&FractionTrackEventsErr,&IndoorTemperature,&OutdoorTemperature,&Pressure,&UniqueRunId);
  14.             fprintf(cFile,"%lf\n",Pressure);
  15.     }
  16.     return 0;
  17. }
Add Comment
Please, Sign In to add comment