Hi, I was wondering what is the best way to make an array from an inputted line of integers that have 1 space between them. Should i use the get function?
get(anInt,'\n')
or
inputfile << storage[anInt] << '\n' <--- dont even think this is allowed
I'm thinking of std::cin >> because it eats spaces but aren't there always better approaches than cin...e.g. using its member functions? I'm not pretty familiar with streams so...let's wait :P
EDIT: oh I missed the operator and said cin itself eats spaces...