how to see the contents of the array after i use infile>>ecg[i] which means the file already being loaded into arrays. below are part of the codes. I used linux and the screen is on Nios 2 terminal.
1) Line 18: a) Useless (comparsion does not do anything), b) Dangerous (Buffer overflow here)
2) It is not good idea to mix C++ stream operations and C output functions. And C++ and C-style file manipulation.
3) You will need a loop, like with input to output content of array.