#include <iostream> int main(){ const char *options[] = { "test1", "test2", "test1", "test2", NULL }; int i = 0; while(options[i]){ std::cout<<options[i]<<std::endl; i++; } return 0; }