z-huu / ece244

0 stars 0 forks source link

lab3 create command name checking #5

Closed z-huu closed 1 year ago

z-huu commented 1 year ago

when creating a shape, we should check that the name is not one of the following reserved keywords OR an allowed shape type

image

if a user tries to create a shape named one of these reserved keywords, the following err msg should be output

image

z-huu commented 1 year ago

implemented additional error checking to reject invalid names

image

the helper function implementation is shown here

image