I finally finished my program with an undefined user input. I saw that arrays had to forcefully be defined in order to be used, so I simply set its size to a variable and then asked the user how many values they wanted to input.
Here are the links that helped me and the link to my code:
- https://github.com/valeriact/tc1017/blob/master/wsq07-3.cpp
- http://www.cplusplus.com/reference/array/array/size/
- http://www.cplusplus.com/reference/array/array/
- http://www.cplusplus.com/forum/general/68461/
- https://stackoverflow.com/questions/3071890/external-delaration-for-an-array?noredirect=1&lq=1
-Valeria
Deja un comentario