Why this list dont set to variable y?

Viewed 41
    int window_height = 30;
    int window_width = 50;
    
//list
    string objects[1000];
    
    int main(){
        
        for(int y =window_height;y>=0;y--){
//this is where the bug is
            ***objects[y]=y;***
        }
//and when I try to take a column from this it displays "♣"
    }
0 Answers
Related