Your linked page says "...the unspecified elements are set to zero."
This is correct; as such, only the first element in your array was specified to be FLT_MAX
, the rest are initialized to zero. If you want to set them all to the same value you can use a for-loop, or more succinctly:
std::fill_n(minTime, 7, FLT_MAX);
As a warning, C++ is a hard language. This means lots of people have lots of misinformation, and this is especially easy to find on the internet. You'd be better off learning from a book on our list. (And yes, the ones not on our list are so because they too contain misinformation!)