thanks for ur reply Mr.Hylke Donker .I downloaded ur code and complied .It’s giving error while including string and vector headers. how to proceed further.kindly guide me.

Add the following headers:
#include <vector>
#include <string>

and make sure you have using namespace std; also in the file with those headers, if you don’t have them already.