Right now I'm trying to learn Bubble sorting, but I'm having an issue where the while loop I'm using loops 1 to few times. I think that the problem is inside the loop that sets the bool "done" to true, but I have not been able to fix the issue.
Here is a pastebin link to the code: https://pastebin.com/7QRTm1ju
here is the loop in question:
//checking if string is in order (low to high)
for (int x = 0; x < sizeof(yeet) / sizeof(yeet[0]); x++)
{
if (yeet[x] < yeet[x + 1])
{
length++;
if (length == stop)
{
done = true;
}
}
}