Hey all,
I can't seem to get the getline() function to work properly for me. I'm trying to use it so that I can store full names in a string array consisting of user-specified size n elements. I've tried a lot of different tweaks (different headers, using a string var instead, etc) all to no avail. Help, please. This was an exercise for my class but I don't think accepting whitespace is a requirement and I've already submitted it using cin instead. I just want to understand why I can't make it work. I doubt that any of the other code is impacting it but I include the entire program just in case. Also, when I tried building this in Visual Studio it wouldn't compile at all! (I did #include "stdafx.h" so that's not why... I just got a bunch of errors. If anyone is interested in what they are, I'll share but it's really besides the point since I'm only concerned with programming for linux/unix consoles for the time being.)