Showcasing Terminal with added for loop

Here’s my code of what I’ve got so far. I already know Ruby and JS quite well, so thought I’d adpat the code a little so I could experiment with how arrays and loops work in C++ as I am completely new to this language. Functionally the code is the same as the lecture, however, if I want to add a new code value that must be input, all I need to do is add a declared value to the inputs array.

Any feedback on how I could improve this would be greatly appreciated :slight_smile:

Please ignore place where I have written ‘indicy’. This isn’t quite right. This should say ‘index’ which corresponds to a plural of ‘indices’

Privacy & Terms