1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#include <iostream>
#include <iomanip>
#include <conio.h>
#include <fstream>
#include <string>
using namespace std;
int main()
{
ifstream inFile("Hey.txt");
inFile.precision(2);
inFile.setf(ios::fixed, ios::showpoint);
const int rows = 10;
const int cols = 10;
string** memberID;
memberID = new string*[rows];
string targetID;
//cout<<"Enter a member ID: ";
//getline(cin, targetID);
for(int i = 0; i < rows; i++)
{
memberID[i] = new string[cols];
}
for(int j = 5; j < cols; j++)
{
for(int i = 0; i < rows; i++)
{
string tot, title, act1, act2, act3, act4, pro1, pro2, comp1, comp2, comp3, copies, fname, lname, memID;
inFile >> tot >> title >> act1 >> act2 >> act3 >> act4 >> pro1 >> pro2 >> comp1 >> comp2 >> comp3 >> copies >> fname >> lname >> memID;
memberID[i][j];
cout << memberID[i][j] << "\n";
}
}
inFile.close();
system("PAUSE");
return 0;
}
|