Hey everyone, I've been getting into C++ and working on a simple student report system that includes login and logout functions. Everything seems to work fine except for logging out. When I log in and then choose option 5 from the menu to log out, I get a message saying no user is logged in, even though I definitely logged in successfully by using option 4. I tried using ChatGPT for help, but the solutions it provided either changed my code too much or were beyond what I've learned so far. I'm just looking for a simple fix that I'm missing. Here's a bit of my code for context, especially the logout function.
1 Answer
Have you spent a little time debugging your program? It might help to step through the code with breakpoints to see what’s happening when you attempt to log out. Tutorials on YouTube can really boost your troubleshooting skills!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically