I\'m making a program to make question forms. The questions are saved to a file, and I want to read them and store them in memory (I use a vector for this). My questions have th
Look at this and use:
ss >> std::ws;
getline(ss, question);
No getline doesn't ignore whitespaces. But there nothing to stop you adding some code to skip whitespaces before you use getline. For instance
while (ss.peek() == ' ') // skip spaces
ss.get();
getline(ss, question);
Soemthing like that anyway.