Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what is this & on line 17 and 22 and why is it there? (c++) 6 using namespace std: /1 Holds data for an inventory

what is this & on line 17 and 22 and why is it there? (c++)

image text in transcribed

6 using namespace std: /1 Holds data for an inventory item /1 Part number /1 Units on hand 8 struct Invitem 60 61 void 62 10 int partNum 11 string description Item description Co 63 64 65 12 int onHand; 13 double price: 11 Unit price 14 ): 15 67 68 16 /1 Function prototypes 17 void getitemData (InvItem &): // Function getitemData will receive an 18 / InvItem structure passed to it by /I reference so new values can be stored /I in its member variables 19 20 21 Prog Enter Ente Ente Ente 22 void showItem (const InvItem &) 23 // Function showItem will receive arn 24 InvItem structure passed to it as a /I constant reference because showItem /I just needs display member variable /I values, not change them 25 Par Des Un 26 27 28 int main) 29 f 30 InvItem part; 31 32 getItemData (part); // Define an InvItem structure variable. 33 showItem (part): 34 35 36 return 0; (program continues)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions