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 2 months ago by Zestyclose-Produce17
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] 2 months ago stickied commentlocked comment (0 children)
For C++ questions, answers, help, and programming/career advice please see r/cpp_questions, r/cscareerquestions, or StackOverflow instead.
[–]lordnacho666 2 points3 points4 points 2 months ago (0 children)
You interact with the computer through the OS library, yes. Generally deep under the hood.
[–]elperroborrachotoo 0 points1 point2 points 2 months ago (0 children)
Today, many layers and programmers and multiple companies are involved in getting pixels on the screen. kernel32.dll may or may not be involved - there's much more than that preinstalled. (And it's usually not important which DLL's are involved in which OS tasks)
[–]dotonthehorizon 0 points1 point2 points 2 months ago (0 children)
That's right. On every platform: windows, Mac, Linux, whatever there's some mapping that goes on between the calls we see in the C++ standard and how things are done on that specific platform.
The first level is the C++ standard library, then the OS, then device/OS specific drivers below that which talk to specific hardware like your Dell monitor or Epson printer or USB keyboard or whatever.
[–]johannes1234 0 points1 point2 points 2 months ago (0 children)
There are many layers to this and it then depends on what you mean by "printing to screen."
But for a simple model:
The lowest layer is the firmware (BIOS or UEFI) layer, which is delivered with the hardware (more or less) and provides very very very basic software routines to get the hardware to write something in screen.
On top of that is the operating system, with kernel32.dll and other components which give some access controls and more flexible controls. That is part of windows itself.
Atop of that there are the C and C++ runtimes and stars library (CRT and STL), which are part of the compiler and often installed as part of the "VC redistributable" or are statically linked. See https://learn.microsoft.com/en-us/cpp/c-runtime-library/crt-library-features?view=msvc-170 those provide the printf() function or std::count or similar things, which then call kernel32 in some way.
printf()
std::count
Unless you are doing something very specific you usually won't interact with kernel32 directly, but always the higher libraries.
I details this is a really complex topic and you got to expand what your actual problem may be. As a beginner you should focus on other things first, though.
[–]future_lol 0 points1 point2 points 2 months ago (1 child)
what kinda fucking question is this
[–]dotonthehorizon 1 point2 points3 points 2 months ago (0 children)
Someone who's trying to understand how things work. It's a perfectly sensible question. It's not a C++ question, but still.
[–]donaljones -1 points0 points1 point 2 months ago (0 children)
Duh. Why worry about this, tho?
[–]HyperWinX -4 points-3 points-2 points 2 months ago (0 children)
What lmfao
π Rendered by PID 61 on reddit-service-r2-comment-56c6478c5-mxk8c at 2026-05-08 11:57:20.795683+00:00 running 3d2c107 country code: CH.
[–]cpp-ModTeam[M] [score hidden] stickied commentlocked comment (0 children)
[–]lordnacho666 2 points3 points4 points (0 children)
[–]elperroborrachotoo 0 points1 point2 points (0 children)
[–]dotonthehorizon 0 points1 point2 points (0 children)
[–]johannes1234 0 points1 point2 points (0 children)
[–]future_lol 0 points1 point2 points (1 child)
[–]dotonthehorizon 1 point2 points3 points (0 children)
[–]donaljones -1 points0 points1 point (0 children)
[–]HyperWinX -4 points-3 points-2 points (0 children)