Question: Trying to read a text file with values but I don't think this part of my code is working properly. Can someone please take a
Trying to read a text file with values but I don't think this part of my code is working properly. Can someone please take a look?
void ReadPoints2() { std::string input_line; std::getline(std::cin, input_line); std::stringstream input_stream(input_line); if (input_line.empty()) return; // Read size of sequence (an integer). int size_of_sequence; input_stream >> size_of_sequence; // Allocate space for "sequence" & sequence_ ptr points to dynamic array of type std::array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
