Partage
  • Partager sur Facebook
  • Partager sur Twitter

String subscript out of range

    30 novembre 2021 à 22:56:11

    Hi everyone !

    So I was programming a little question game for a course and then I got this error :

    And there is my code :

    My main function is the following :

    int main()
    {
        int playerScore = 0;
        Question question;
        question.BuildQuestions();
        playerScore = question.answerQuestion(playerScore);
    }

    The only thing that I could find on the internet is that I am indexing an array out of bound, but I can't find the problem with mine. If someone could help it will be very appreciaded :)

    • Partager sur Facebook
    • Partager sur Twitter

    String subscript out of range

    × Après avoir cliqué sur "Répondre" vous serez invité à vous connecter pour que votre message soit publié.
    × Attention, ce sujet est très ancien. Le déterrer n'est pas forcément approprié. Nous te conseillons de créer un nouveau sujet pour poser ta question.
    • Editeur
    • Markdown