المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : how to search for a record in a file.



C++ Programming
12-01-2009, 11:12 AM
Hi,

Recently I attempted a interview. There they ask me one question,

" You have a file with employee records, with fields empno, emp name and salary. Now you have to retrieve employee information based on the employee name"

For this what I answered is, I will write a vector and based on the emp no I will search the records.

For this he again ask me what happens when that particular file is in terabytes of memory records.

Please can any one knows the approach for retrieve a emprecord from a big file based on the number....


Thanx in advance........

sampath-padamatinti