While loops crashing, String not adding words to the Array : I've been searching for quite a while and i can't find the reason why nothing about this program works. It's supposed to ask the user to add a word that then will be added to the string array and after that, all words will be printed out. 

    #include <iostream>
    
    int main()
    {
        int counter = 0;
        bool isRunning = true;
    
        std::string listofthings[]
        {
        };
    
        while(isRunning)
        {
            char play;
            std::string word;
            std::cout << "Enter a word" << std::endl;
            std::cin >> word;
            listofthings[counter] = word;
            counter++;
            std::cout << "Word added! q to Quit, any other key to continue" << std::endl;
            std::cin >> play;
            if(play == 'q')
                isRunning = false;
        }
    
        int listnr = sizeof(listofthings)/sizeof(listofthings[0]);
    
        for(int i = 0; i < listnr; i++)
        {
            std::cout << listofthings[i] << std::endl;
        }
    }

Thanks in advance

