File is successfully opened
3 13 34 54 71 81 97 105 116 135 138
I have this data, and I want to call (3,1) then (3,13), then (3,34)..........
How to declare 3 is the first than 13 is second?
{ ifstream stream1 ("STA83STU.txt");
if ( !stream1 )
{
stream1.close ();
}
const int student_size = 12;
pair<int,int>* array[student_size];
for (int k = 0; k< student_size; k++)
{
array[k] = new pair<int,int>(1,k); // Construct each new pair and give its address to an index in the pointer arrayconst int student_size = 12;
cout <<"("<<" , k" << ")";
cout <<"\n"<<endl;
}
}