'Program is not accessing correct index of array.. Why?

I come to this site in need of help, after struggling with this problem for a few days now. I am trying to program a poem that accepts some data from standard input and then outputs a poem based on that data.

The code seems to be working, but it is not correct! It is giving me the wrong index of the array I am using. I would love extra eyes to help me with my code and let me know what I am doing wrong.

ALSO! For some reason, I am not able to access the third array of the char array... I tried to place "SIZE - 1" in there but it prints nothing... Would love to understand why this is. Does this look right?

 // Program that accepts some data from standard input, 


#include <iostream>
#include <cstring>

//here... extracted. 
    for (int sign = 0; sign < poem[line]; sign++)
    {
      if (line > word_count)
      {
        std::cout << " ";
        print_poem(seed);
      }
      else
      {
        print_poem(seed);
      }
    


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source