#include #include #include #include #include "nr.h" using namespace std; // Driver for routine select int main(void) { const int NP=100; string txt; int i,k; DP q,s; Vec_DP a(NP),b(NP); ifstream fp("tarray.dat"); if (fp.fail()) NR::nrerror("Data file tarray.dat not found"); getline(fp,txt); for (i=0;i> a[i]; cout << fixed << setprecision(2); for (;;) { cout << endl << "Input k (negative to end)" << endl; cin >> k; if (k < 0 || k >= NP) break; for (i=0;i