This probably has a specific answer, however I'm trying to test the getline() function by making it stop at a "." for instance just so I can assure myself that i'm using it correctly. Looking at online syntax the way it's supposed to be used is as follows
Syntax 1: istream& getline (istream& is, string& str, char delim);
is : It is an object of istream class and tells the function about the stream from where to read the input from.
str : It is a string object, the input is stored in this object after being >read from the stream.
delim : It is the delimitation character which tells the function to stop >reading further input after reaching this character.
However when I tried to test this small library function in my code, it throws an exception stating that can be seen below:
Why does it state that it's overloaded? Or am I missing something very small under my radar?