12
string list[] = {"pie", "cake", "crusts"}; cout << list[ rand()%3 ];
1234
if (list[] == "cake") { //stuff }
expected primary-expression before ']' token
comparison between distinct pointer types `std::string*' and `const char*' lacks a cast
list2 = list[rand ()%3]; if (list2 == "cake") { }