Formatted input in c++
- by julz666
hey, i'm a noob to c++ (and coding in general)
i'm looking for an easy way to take two doubles (at once) from the keyboard and store them in a struct i've created called "Point" and then ultimately store the Point into a vector of Points that's a member of a class (called "Polygon").
i know i could do it with a scanf but need to know how to do it with cin.
hope that makes sense.
thanks in advance
julz