Hi, I'm a c++ newbie and I need some help with classes. Take a look at this code snippet and see if you can figure out why I get an error. (Besides the absence of constructor/destructor)
Help is greatly appreciated!! ThanksCode:#pragma once class Part { public: int ID; int daysNeeded; int buyPrice; int sellPrice; char name[20]; char description[100]; }; Part item; item.ID = 5;