https://wikimass.com/cpp/array-programs