I need to use a getline function, however whenever I use one I get an error message. I included <string> and <iostream>. Any help would be appreciated.
If the error message is "Too much cheese in desk drawer", take some cheese out of the drawer. If the error message is something else, you'll have to just tell us so we can help you.
Without the line of code in question and the exact error message, we're just suggesting options. With those two, you'd have had the answer literally a minute after your first post :(
In broad terms, you're trying to call a function that your compiler cannot find. This is because it either doesn't exist (wrong parameters) or the compiler doesn't know it exists (missing includes) or you've directed it to look in the wrong place (bad namespaceing).