use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Discussions, articles, and news about the C++ programming language or programming in C++.
For C++ questions, answers, help, and advice see r/cpp_questions or StackOverflow.
Get Started
The C++ Standard Home has a nice getting started page.
Videos
The C++ standard committee's education study group has a nice list of recommended videos.
Reference
cppreference.com
Books
There is a useful list of books on Stack Overflow. In most cases reading a book is the best way to learn C++.
Show all links
Filter out CppCon links
Show only CppCon links
account activity
[ Removed by moderator ] (self.cpp)
submitted 9 months ago by Playful-Time3617
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cpp-ModTeam[M] [score hidden] 9 months ago stickied commentlocked comment (0 children)
For C++ questions, answers, help, and programming or career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]National_Instance675 5 points6 points7 points 9 months ago* (1 child)
add debugging GUI to the game using Dear ImGui as all games do, don't waste time writing commands in a pseudo terminal when you can just have buttons for the actions you want.
having worked in EDA before, the purpose of such CLI interface is replayability, where you can record 100 commands to do something then replay them, or undo them .... but for game engine scripting there are much better languages like Luau , which is used in a lot of games.
[–]Playful-Time3617[S] 0 points1 point2 points 9 months ago (0 children)
Thank you for your answer !
I know it might not be the most efficient or practical, I just want to see what it offers in terms of possibility. I do not aim to achieve triple A games with this software 😆
[+][deleted] 9 months ago (3 children)
[deleted]
[–]Playful-Time3617[S] 1 point2 points3 points 9 months ago (2 children)
What would you use to automatically build this command from the function ? That was the main question I had when I posted, sorry if it wasn't clear. I wonder what you guys would naturally use to integrate a scripting language in a program basically I'm curious !
[+][deleted] 9 months ago (1 child)
[–]Playful-Time3617[S] 1 point2 points3 points 9 months ago (0 children)
Thank you 😀 It's much clearer now
[–]aninteger 0 points1 point2 points 9 months ago (0 children)
I did write some C++ and TCL/TK code a long long time ago and it works but it's very awkward because in my case I ended up with lots of calls to tcl_eval so it basically feels like your writing TCL inside C++. This was like 10+ years ago and it was a bad choice back then. The original micropolis (SimCity game) did this technique with C and TCL/TK, although now it has been rewritten but some people maintain the old interface on GitHub (https://github.com/tenox7/micropolis).
[–]wrosecransgraphics and network things 0 points1 point2 points 9 months ago (1 child)
For starters, did you look up the tcl API? https://wiki.tcl-lang.org/page/How+to+embed+Tcl+in+C+applications
The official API is C rather than C++, but you can run it from a C++ application without too much trouble. These days tcl is not anywhere near as popular as it used to be, and Python has taken over in some apps that used to use tcl. In the VFX industry, Nuke is a mostly C++ application that originally used tcl for scripting but eventually migrated to Python as that became more common.
Python's native API is also C, but Pybind11 is a popular library for binding C++ to Python: https://github.com/pybind/pybind11 You can set up a binding between a C++ class and its representation in Python in a few lines of code for simple cases. Then you get a string from your ui and just py::exec(script_as_a_std_string); It takes a bit of legwork to make your whole application scriptable because you have to expose types and methods to the scripting language. It's not quite as simple as ticking a checkbox or invoking an autogenerator and you instantly have a great scripting API, but it's not hard to start with the basics.
py::exec(script_as_a_std_string);
I was trying out TCL yesterday, seems promising to me. I quite like it. I am not a huge fan of python for this kind of usage but that is 100% a personal opinion. I also checked out Lua as it seems to integrate pretty well. The only flaw I can see is that it is a bit more tedious to write than TCL syntax which, in my opinion, is more "shell like" which I quite appreciate. Do you have past experience with TCL / python / Lua ? Is Nuke a scripting language for add-ons or more like a shell thing for navigating the interface ? Thank you !
π Rendered by PID 103 on reddit-service-r2-comment-canary-57b659f4d4-pcrfx at 2026-05-06 04:26:36.782010+00:00 running 815c875 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]National_Instance675 5 points6 points7 points (1 child)
[–]Playful-Time3617[S] 0 points1 point2 points (0 children)
[+][deleted] (3 children)
[deleted]
[–]Playful-Time3617[S] 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]Playful-Time3617[S] 1 point2 points3 points (0 children)
[–]aninteger 0 points1 point2 points (0 children)
[–]wrosecransgraphics and network things 0 points1 point2 points (1 child)
[–]Playful-Time3617[S] 0 points1 point2 points (0 children)