I have a function that calls itself several times before finishing. This function needs to call itself thousands of
times but i the stack isn't big enough so i get a stack overflow error. I know it's possible to increase the stack size but i want to find another solution. the purpose of the function is to fill in part of a picture like the paint can tool in mspaint so if anyone knows another way to accomplish this it would be really helpful.
times but i the stack isn't big enough so i get a stack overflow error. I know it's possible to increase the stack size but i want to find another solution. the purpose of the function is to fill in part of a picture like the paint can tool in mspaint so if anyone knows another way to accomplish this it would be really helpful.