Given The Following Code Fragment Which Of The Following Correctly Obtains User

Given the following code fragment, which of the following correctly obtains user input and assigns it to numOfBedrooms?

struct houseType {string style;int numOfBedrooms;double price;};

int main() {houseType myPad;}

1. cin >> myPad.numOfBedrooms;

2. cin >> myPad;

3. none of the above

Need your ASSIGNMENT done? Use our paper writing service to score good grades and meet your deadlines.

Order a Similar Paper Order a Different Paper