Given the ShoeType structure type definition. Write a function for the declaration (prototype).

```
struct ShoeType { char style; double price;
};
void readShoeRecord(ShoeType& Item);
// Prompts for data and fills ShoeType argument members
```


```
void readShoeRecord(ShoeType& Item)
{
cout << “Enter style, one character, then press “;
cin >> Item.style;
cout << “Enter price as 66.66, (with decimal, no $)”
<< “then press
cin >> Item.price;
}
```

Use of reference parameter causes changes inside the function to be reflected outside.

Computer Science & Information Technology

You might also like to view...

Write a line of code that declares and initializes a C-string variable, yourString, that can hold up to 10 characters. Use the initialization string

What will be an ideal response?

Computer Science & Information Technology

A loop decision point consists of three features: an initial value, a set of actions to be performed, and a(n) ________

A) testing plan B) operator C) test condition D) class

Computer Science & Information Technology

Emptying the Recycle Bin frees up space on the hard drive

Indicate whether the statement is true or false

Computer Science & Information Technology

____________________ electronically scrambles data packets and locks them with a private encryption key before transmitting them onto the wireless network.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology