const char x[2][20] = {"333 ","service\n"}; const char * y = "Quilstone "; for (int i = 0; i < 3; i++) { cout << ((i < 2) ? !i ? x[i] : y : x[1]); }