Getline() as well?

getline and get do they both have the same function?

Not exactly
there are many similarities

you can watch this for complete understanding
really good explanation