So I'm working on a basic C++ payroll program, but I'm having trouble getting the getline() function to work properly. It's supposed to read from a plain text file an employee's ID number, name, ...
c++ question:<BR><BR>cin.getline(x_ptr->var, size)<BR><BR>Is there something wrong with this syntax? Specifically with the first argument? This line hangs in my program.<BR><BR><BR>EDIT: var is ...