Well, I started programming C++ like 2 weeks ago, and now i'm learning how to read data from files, using sentinels and using the function atoi in this little practice.
How should this program work?
Well, I'll have a txt ready to be read in the default location with: * 21 3 5 10 20 * < 1 13 17 10 36 > ... ; between '*' I need to find wich is the greatest number and the lesser one and get the average of the numbers between < > so far i tried to test the < > part 'cause i guess it's easier, but each time i run the program, it just opens and after i type in the name of the txt, it closes...
Sorry if i did not explain myself right, english's not my native. Here's the code: