- Timestamp:
- May 30, 2008, 2:25:02 PM (17 years ago)
- Children:
- 807e8a
- Parents:
- f7d12e
- Location:
- util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified util/average.cpp ¶
rf7d12e r0fe2ca 17 17 int flag; 18 18 string zeile; 19 stringstream line; 19 20 20 21 if (argc < 4) { 21 22 cout << "Usage: " << argv[0] << " <firstCol> <lastCol> <X> <File>\n"; 22 23 return(1); 23 } 24 firstcol = atoi(argv[1]); 25 lastcol = atoi(argv[2]); 26 ecut = atof(argv[3]); 24 } 25 line.str(argv[1]); 26 line >> firstcol; 27 line.clear(); 28 line.str(argv[2]); 29 line >> lastcol; 30 line.clear(); 31 line.str(argv[3]); 32 line >> ecut; 33 cout << "Going from " << firstcol << " to " << lastcol << " with Ecut of " << ecut << "." << endl; 27 34 28 35 // get average -
TabularUnified util/stochastik.cpp ¶
rf7d12e r0fe2ca 17 17 FILE *test; 18 18 string zeile; 19 stringstream line; 19 20 20 21 if (argc < 4) { … … 22 23 return(1); 23 24 } 24 col = atoi(argv[1]); 25 ecut = atoi(argv[2]); 25 line.str(argv[1]); 26 line >> col; 27 line.clear(); 28 line.str(argv[2]); 29 line >> ecut; 30 cout << "Using " << col << " with Ecut of " << ecut << "." << endl; 26 31 27 32 // get average
Note:
See TracChangeset
for help on using the changeset viewer.