Current time: 06 May 2024, 11:57 PM



Stack Overflow (C++)
Away SmG FlasH™

Senior Member
Senior Member
******
11 Years of Service
Posts: 3,129
Threads: 102
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Apr 2013
Reputation: 141
Location: Summoners Rift
Halo GodCrystal DonatorSmoothThe BombDiscord WarriorGavel of TrinityDiamondGamerProgrammerThanks From Cloud
#1
Stack Overflow (C++)

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

P.S: I can pm my code if necessary.

Thanx in advance :)
[Image: SPOILER_FlasH-1.gif]
24 May 2016, 01:10 PM
Find Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)
SmG Gaming, © 2010-2024
Theme By: «SmG» Cloud
Edited by: «SmG» Wires