sl@0: /* example for using class array<> sl@0: * (C) Copyright Nicolai M. Josuttis 2001. sl@0: * Distributed under the Boost Software License, Version 1.0. (See sl@0: * accompanying file LICENSE_1_0.txt or copy at sl@0: * http://www.boost.org/LICENSE_1_0.txt) sl@0: */ sl@0: /* sl@0: * © Portions copyright (c) 2006-2007 Nokia Corporation. All rights reserved. sl@0: */ sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: #ifdef __SYMBIAN32__ sl@0: #include "std_log_result.h" sl@0: #define LOG_FILENAME_LINE __FILE__, __LINE__ sl@0: #endif sl@0: int main() sl@0: { sl@0: std_log(LOG_FILENAME_LINE,"[Test Case for array4]"); sl@0: // array of arrays of seasons sl@0: boost::array,2> seasons_i18n = { sl@0: { { { "spring", "summer", "autumn", "winter", } }, sl@0: { { "Fruehling", "Sommer", "Herbst", "Winter" } } sl@0: } sl@0: }; sl@0: sl@0: // for any array of seasons print seasons sl@0: for (unsigned i=0; i seasons = seasons_i18n[i]; sl@0: for (unsigned j=0; j