goldshakil / ElectricalProgrammingCourse2020

This repository is aimed towards sharing and discussing issues about Electrical and Electronics Programming Course
6 stars 1 forks source link

[Others] Final Project #303

Open cms7371 opened 4 years ago

cms7371 commented 4 years ago

Should I use dynamic array for structures, strings to cover various cases?

Or Can I define length of arrays with my own decision if it is enough to cover common case?

cms7371 commented 4 years ago

Plus should I cover all case of error? For example, when user put string as input where needs to get integer. That will causes error, but I think our lecture did not cover about exception handling, so I wonder about that case

goldshakil commented 4 years ago

for your first question, using normal arrays is fine

for your second question, you shouldn't cover these you should only cover cases such as entering a letter (e.g. Z) where there is no option corresponding to Z