Hi everyone, I'm trying to create a loop that finds a space in an array starting from the position 79. I think I have it and it should work but it won't.
I did a static_cast<int>(' ')l and was given the value 32
Now, the counter gives me the location of the space, which would be I think (79-counter)Code:for (i = 79; (static_cast<int>(length[i]) == 32); i--) counter++;
Let me know what you guys think