printf("\nEnter Length of Page-reference :");
// printf("\nEnter sequence: "); keyin method
ifstream myfile ("string.txt");
while (getline (myfile,line))
cout << line << endl;
//im stuck here... how to pass the string to this function?
for(i=0;i<n;i++) //accepting sequence
printf("\nEnter your choice:");
case 1: fifo();
case 2: lru();
it's not clear what you are trying to do.
So it is very difficult to offer any help,
can you explain what you are working on?