The problem I am encountering is the warning message I get when running the c++ .cpp code. Is there another way I can convert an integer to a string.

Here is a snapshot of the code I am running, and where the problem is:
string empId2 = to_string(empId);
to_string(introduced with c++11), or you need to compile in c++11 standards mode or later (-std=c++11on gcc and clang).