How to do stuff when the console is closed by user (C++)?
I have a program run on a console, and I need to save progress when the user closes the console. How to do it?
How do I remove the console window in a C++ application in Visual Studio?
I have a GLFW and OpenGL program in C++ Visual Studio with a window. The console window popping up whenever I run the program is annoying. How do I remove it? I’m on windows but I don’t want to make it windows specific, it should be able to run on other OS’s.
Failure to open a CSV in C++
I am trying to write a function that opens a csv path in ifstream and then parse it into a course object that I can then insert into a BST. For some reason that I haven’t figured out yet, the program fails to open the csv and returns before ever hitting the rest of the code. Code below:
Wierd formatting C++ std::cin, suggestions needed
Im kinda new to C++, Uh never seen this before. And no one else has this problem, yea…
Is there a way to stop the pressed key from being displayed in the console?
Im looking for a function or something else that behaves like the _getch()
in c++, something that takes a single char input without needing to press enter, and not printing/displaying the pressed key.
How to check if console app was run before in this session?
I’ve made a small console app, and I would like to check was the app run before in this session or no, to display some help message if this is first time.
How can I get full stacktrace in my C# app?
I have realized that now I’m getting short stacktrace for exceptions in my app.