[Close]
Welcome to SmG Gaming Community!
You're browsing our website as a Guest.
In order to view all of our content as well as added bonus features, please register by clicking HERE.
So my assignment was to make a console application using c++ for 100 customers. I use a main menu and take the input and redirect it to the specific function. The problem is, I can only register upto 15~ users. Once I try to register beyond that, it gives me a stack overflow error. I'm guessing this is with memory allocation or something. But I have no clue.
Any idea on how to fix it?
I basically obtain the user's details and store them in variables. One user is registered at a time, once registration is done, it is redirected to the menu and you can register again.
Also my when I take the input from the user from the menu (consisting of 11 functions) I use an integer variable to store the value. Therefore if a string/char is entered, it goes into an infinite loop.
Main priority is the stack overflow error tho, that's like the main requirement xD