boost::array<int, 5> array_temp = {{12, 8, 45, 23, 9}}; sort(array_temp.begin(), array_temp.end()); copy(array_temp.begin(), array_temp.end(), ostream_iterator<int>(cout, " ")); return 0; } 希望本文所述對大家的C++程序設(shè)計(jì)有所幫助。
www.dbjr.com.cn/article/565...htm 2025-6-7