LogFAQs > #877052578

LurkerFAQs, Active DB, Database 1 ( 03.09.2017-09.16.2017 ), DB2, DB3, DB4, DB5, DB6, DB7, DB8, DB9, DB10, DB11, DB12, Clear
Topic List
Page List: 1
TopicAnyone here familiar with C++?
longsticks
04/12/17 12:26:46 PM
#22:


kirbymuncher posted...
longsticks posted...
The 'read values' part is really confusing me, it would make more sense if it was 'write values'.

"read values into" means start from something empty and fill it with data (maybe from a file, maybe from user input, etc).

"read values from" means taking something that already has data in it and accessing that data to do something with it


That makes a ton more sense. Since there's no outside file involved, I'm thinking i'd pass the circle1 structure into a function which asks the user for each of the member variables and writes them into the structure? Something like:

void getValues(Circle& circle1);
{
cout << "Enter radius/n";
cin >> circle1.radius;

etc...
}
---
... Copied to Clipboard!
Topic List
Page List: 1