Find Max & min value of input stream without arrays and vectors

Dear programmers,
I need to find Max & min value of input stream without arrays and vectors
Last edited on
Easy peasy, store the first value retrieved as both min and max. Compare each new value with the previously stored min/max. Change as needed, lather, rinse and repeat until the stream is empty.
Topic archived. No new replies allowed.