so my program has to read data from text file and pass it to the function. text file contains integer and string in every line. it looks like this:
23456 john
96512 martin
56985 wendy
i've written it in C using this code:
while (fscanf(filestream, "%d%s", &key, &value) == 2){
Insert(key, value);
}
it would be very helpful if someone could write the exact equivalent in C++ for the given code.
Thank you in advance.