#include
using namespace std;
string words[] = {"cake", "cookie", "carrot", "cauliflower", "cherries", "celery"};
string word = words[rand() % 6];
string guess;
int lives = 3;
int main()
{
std::cout > guess;
std::cout
Подробнее здесь: https://stackoverflow.com/questions/690 ... array-in-c