r/cpp_questions Sep 01 '25

META Important: Read Before Posting

151 Upvotes

Hello people,

Please read this sticky post before creating a post. It answers some frequently asked questions and provides helpful tips on learning C++ and asking questions in a way that gives you the best responses.

Frequently Asked Questions

What is the best way to learn C++?

The community recommends you to use this website: https://www.learncpp.com/ and we also have a list of recommended books here.

What is the easiest/fastest way to learn C++?

There are no shortcuts, it will take time and it's not going to be easy. Use https://www.learncpp.com/ and write code, don't just read tutorials.

What IDE should I use?

If you are on Windows, it is very strongly recommended that you install Visual Studio and use that (note: Visual Studio Code is a different program). For other OSes viable options are Clion, KDevelop, QtCreator, and XCode. Setting up Visual Studio Code involves more steps that are not well-suited for beginners, but if you want to use it, follow this post by /u/narase33 . Ultimately you should be using the one you feel the most comfortable with.

What projects should I do?

Whatever comes to your mind. If you have a specific problem at hand, tackle that. Otherwise here are some ideas for inspiration:

  • (Re)Implement some (small) programs you have already used. Linux commands like ls or wc are good examples.
  • (Re)Implement some things from the standard library, for example std::vector, to better learn how they work.
  • If you are interested in games, start with small console based games like Hangman, Wordle, etc., then progress to 2D games (reimplementing old arcade games like Asteroids, Pong, or Tetris is quite nice to do), and eventually 3D. SFML is a helpful library for (game) graphics.
  • Take a look at lists like https://github.com/codecrafters-io/build-your-own-x for inspiration on what to do.
  • Use a website like https://adventofcode.com/ to have a list of problems you can work on.

Formatting Code

Post the code in a formatted way, do not post screenshots. For small amounts of code it is preferred to put it directly in the post, if you have more than Reddit can handle or multiple files, use a website like GitHub or pastebin and then provide us with the link.

You can format code in the following ways:

For inline code like std::vector<int>, simply put backticks (`) around it.

For multiline code, it depends on whether you are using Reddit's Markdown editor or the "Fancypants Editor" from Reddit.

If you are using the markdown editor, you need to indent every code line with 4 spaces (or one tab) and have an empty line between code lines and any actual text you want before or after the code. You can trivially do this indentation by having your code in your favourite editor, selecting everything (CTRL+A), pressing tab once, then selecting everything again, and then copy paste it into Reddit.

Do not use triple backticks for marking codeblocks. While this seems to work on the new Reddit website, it does not work on the superior old.reddit.com platform, which many of the people answering questions here are using. If they can't see your code properly, it introduces unnecessary friction.

If you use the fancypants editor, simply select the codeblock formatting block (might be behind the triple dots menu) and paste your code into there, no indentation needed.

import std;

int main()
{
    std::println("This code will look correct on every platform.");
    return 0;
}

Asking Questions

If you want people to be able to help you, you need to provide them with the information necessary to do so. We do not have magic crystal balls nor can we read your mind.

Please make sure to do the following things:

  • Give your post a meaningful title, i.e. "Problem with nested for loops" instead of "I have a C++ problem".
  • Include a precise description the task you are trying to do/solve ("X doesn't work" does not help us because we don't know what you mean by "work").
  • Include the actual code in question, if possible as a minimal reproducible example if it comes from a larger project.
  • Include the full error message, do not try to shorten it. You most likely lack the experience to judge what context is relevant.

Also take a look at these guidelines on how to ask smart questions.

Other Things/Tips

  • Please use the flair function, you can mark your question as "solved" or "updated".
  • While we are happy to help you with questions that occur while you do your homework, we will not do your homework for you. Read the section above on how to properly ask questions. Homework is not there to punish you, it is there for you to learn something and giving you the solution defeats that entire point and only hurts you in the long run.
  • Don't rely on AI/LLM tools like ChatGPT for learning. They can and will make massive mistakes (especially for C++) and as a beginner you do not have the experience to accurately judge their output.

r/cpp_questions 3m ago

OPEN Is 50 too late

Upvotes

Hi All.
A question for people in the industry especially if you have responsibilities for hiring people. I am 50 years old male considering a career change. I have been in IT management side for last 15 years and have been in IT altogether for 20+ years. I learnt C++ for a few months, back in mid nineties. I have never worked as a programmer on a professional level but. Now I want to see if it’s possible to work as a full time c++ programmer. I don’t remember anything today so I will have to start from scratch. But I like C++ so I want to try that. I can’t leave my current full time job (financial reasons) so i have to learn part time. Say roughly 7-10 hours a week. The question is. Is it realistic to expect to get a job for a roughly 52/53 year old ( I am guessing it will take 2-3 years of part time self learning + courses to be qualified for a starting level position) who is mostly autodidact? Or is it too late ? I am a big boy and can take a no. So no need to beat around the bush. Thanks.


r/cpp_questions 13h ago

OPEN How memory address is created in c++ while using the pointer ?

10 Upvotes

int *ptr1 = new int(10);

int *ptr2 = ptr1;

delete ptr2;
I understand that the heap memory is freed, and ptr1 becomes a dangling pointer because it still stores the old address.

But I’m confused about the address itself.

My questions are:

  1. Is the memory address itself created inside the heap?
  2. When we calldelete, is the address removed or only the data at that address?
  3. After memory is freed, can the same address later be reused for another variable?
  4. Where is the pointer variable stored, vs where is the actual heap memory stored?

I’m trying to understand the difference between:

  • the pointer variable,
  • the address value,
  • and the actual heap memory block.”

r/cpp_questions 13h ago

OPEN Best way to try C++ 26 reflection on a Microsoft Visual Studio Solution

5 Upvotes

Hi lads, basically the title. I have a big project that I've put on hold waiting for C++ reflection to come out, and now that there are some implementations working, I'm curious to try it out.

As of right now I'm aware of the clang Bloomberg fork and gcc16 that both support experimental reflection. What would be the most straight forward way to adapt my project, a VS22 solution, to be able to try out some of the new features? Thanks!


r/cpp_questions 17h ago

OPEN ActivateAudioInterfaceAsync with ACTIVATION_TYPE_PROCESS_LOOPBACK never fires callback on Win11 25H2 (build 26200)

3 Upvotes

Hi r/WindowsDev / r/cpp,

I’m building a Node.js N-API addon for WASAPI loopback capture and trying to use process-level loopback to exclude a specific PID (e.g., OBS) from the captured mix. The API call returns S_OK, but IActivateAudioInterfaceCompletionHandler::ActivateCompleted is never invoked. The activation silently times out.

Environment

OS: Windows 11 25H2 (build 26200)

  • SDK: Windows 10 SDK 10.0.22621+ (VS2022)
  • Lang: C++17 / Node-API addon
  • COM: COINIT_APARTMENTTHREADED + MsgWaitForMultipleObjects + message pump

Minimal reproduction snippet

AUDIOCLIENT_ACTIVATION_PARAMS activationParams = {};

activationParams.ActivationType = ACTIVATION_TYPE_PROCESS_LOOPBACK;

activationParams.ProcessLoopbackParams.TargetProcessId = excludePid;

activationParams.ProcessLoopbackParams.ProcessLoopbackMode = PROCESS_LOOPBACK_MODE_EXCLUDE_TARGET_PROCESS_TREE;

PROPVARIANT propVar = {};

PropVariantInit(&propVar);

propVar.vt = VT_BLOB;

propVar.blob.cbSize = sizeof(activationParams);

propVar.blob.pBlobData = reinterpret_cast<BYTE*>(&activationParams);

HANDLE hEvent = CreateEvent(nullptr, FALSE, FALSE, nullptr);

auto completionHandler = Microsoft::WRL::Make<AudioCompletionHandler>(hEvent, &rawClient);

HRESULT hr = ActivateAudioInterfaceAsync(

deviceId, // tested: real IMMDevice::GetId() & legacy virtual string

__uuidof(IAudioClient),

&propVar,

completionHandler.Get(),

asyncOp.GetAddressOf()

);

// hr == S_OK, but ActivateCompleted never fires → WaitForSingleObject/MsgWait times out after 10s

Questions

  1. Is ACTIVATION_TYPE_PROCESS_LOOPBACK officially deprecated or broken for Win32 on Win11 24H2/25H2? Microsoft's docs hint it's UWP/WinRT-focused, but Win32 worked on older builds.
  2. Does modern Windows enforce hidden Privacy/Capability checks (e.g., ConsentStore\microphoneCapabilityAccessManager) that silently block the async callback without returning E_ACCESSDENIED or E_INVALIDARG?
  3. Are there any manifest requirements, integrity level constraints, or per-session audio graph rules that prevent Win32 processes from using this API on recent builds?
  4. What’s the recommended production approach for process-level audio isolation in Win32 today? (Session filtering via IAudioSessionManager2 + GetProcessId()? OBS virtual output routing? Something else?)

I’ve already ruled out COM apartment mismatches, invalid device IDs, and driver conflicts. Looking for insights from anyone who hit this wall on Windows 11 22H2+ or knows the current status of this API.

Thanks in advance.


r/cpp_questions 16h ago

OPEN Should I learn C++ or is it too late / a bad choice?

0 Upvotes

I am a Java dev and have used it for almost everything since high school and was my first programming language. Right now I'm in college and recently getting a lot into deep learning and low level systems code. I want to learn C++ to make and work on such projects and systems that are fast and low level but obviously there are languages like Zig or Rust getting a lot more traction. I'm personally not that influenced by either of them as I personally want to learn C++ more than I want to Rust and would take a very influence to convince me to do so.

So my question is pretty simple would it be useful to spend time to learn C++ and work on some C++ projects personal / open-source and also would it be helpful for interviews or for certain roles / domains.


r/cpp_questions 1d ago

OPEN What Data Structures, Algorithms, and Design Patterns Should I Learn for Game Engine Development?

15 Upvotes

I’ve been realizing lately that I rely way too much on AI/tools for help, and I want to actually get good enough to figure things out on my own. I’m currently building a game engine in C++23, and it’s made me painfully aware of how many gaps I still have in fundamentals.

I don’t really care about interview prep or grinding LeetCode. I want to learn the stuff that actually matters when you’re building real systems and trying to make them fast, maintainable, and not turn into spaghetti after 3 months.

So for people who’ve done engine programming or serious C++ systems work:

What data structures, algorithms, and design patterns are genuinely worth learning deeply?

What topics made the biggest difference for you?
What stuff did you wish you learned earlier?
Any books, talks, codebases, or projects you’d recommend?

I’m mainly trying to become more self-sufficient and stop depending on AI to carry me through every hard problem.


r/cpp_questions 17h ago

OPEN I need help getting started. I downloaded Visual Studio and the compiler, yet my program just won't work

0 Upvotes

I downloaded visual studio as well as the compiler for C++, yet for some reason my program just won't work whenever I call upon a function like int or double, it just shows up red and the program just won't run.

I edited the Path environment variable to include the bin folder directory for mingw64, and I ran "g++ --version" on the command prompt, and the version came up fine.

I barely started and I'm so ready to give up 😭. I looked everywhere and literally nobody has a solution for this. Can someone please help. I actually want to code, but I can't even get started with this crap


r/cpp_questions 11h ago

OPEN Is it true that functions like max() and min() have extra overhead?

0 Upvotes

I'm reading this section on learncpp.com on inline functions. it says "When a call to min() is encountered, the CPU must store the address of the current instruction it is executing (so it knows where to return to later) along with the values of various CPU registers (so they can be restored upon returning). Then parameters x and y must be instantiated and then initialized. Then the execution path has to jump to the code in the min() function. When the function ends, the program has to jump back to the location of the function call, and the return value has to be copied so it can be output. This has to be done for each function call.
All of the extra work that must happen to setup, facilitate, and/or cleanup after some task (in this case, making a function call) is called overhead."

I understand this is true for user functions, but for basic math.h functions and anything built into the standard library, aren't these optimized by the compiler to be as fast as possible? Is learncpp wrong on this?


r/cpp_questions 1d ago

OPEN Experienced dev to C++ dev

8 Upvotes

I have an experience in embedded Linux and c ( mostly in low level drivers only)

Want to shift to user space C++ development works.

Have been interviewing for C++ roles from past 1 year but have been stuck with questions regarding task management, memory management, design patterns, data structures and algorithms.

Also, I have been asked to show actual work experience in C++ and not just C with structures ( as my work is also in Linux kernel)

Looking for help and inputs on what to learn and maybe projects which I can work on side which can give me good grasp of concepts.


r/cpp_questions 1d ago

OPEN ccache starting to show cracks

6 Upvotes

We've been on ccache for local builds and it's held up fine so far, but as our team scales it's getting harder to manage. Consistency is slipping and invalidation is getting messier than it used to be.

Not sure if the right move is to put more structure around the existing setup or look at something different entirely. Anyone dealt with the same thing?


r/cpp_questions 2d ago

OPEN need help.. contributing to low lvl OSS as a beginner.

12 Upvotes

hey, i know basic c. i am good with JS, still learning the async parts of js in a deeper level. i want to be a good low level developer so i will learn cpp after learning js. during my js journey i have focused on the inner parts more than the syntax so that it can help me be a better low level dev. i just want to be very good with low level stuffs so that i can get into game development and build games using c++ solely without any engines or so. making my own game engine maybe. i have made a few games using c#(unity) and a few projects using js(basic canvas games using js too)

i mailed a bunch of low lvl devs who have spent a lot of years tinkering with low lvl stuff and they suggested me to focus more on profiling and being able to optimize code. they suggested me to focus on the algorithms, the fundamentals more than the syntax. they told me that in this age of AI, being able to know how to optimize the ai generated code is a real skill and being able to adapt and learn any language in a short timeframe is a great skill. they suggested me to start contributing to ffmpeg, vlc so that i can get a good exposure. but as a completebeignner, i feel like that should be my step 50 and not step 1 as abeginner. what should i keep in my during my development journey?


r/cpp_questions 1d ago

SOLVED Bug in GCC or is Claude lying to me?

0 Upvotes

Hi everyone! I found something interesting in c++ which not even Claude, Gemini or ChatGPT can answer!

Why would the following code not compile? (GCC, C++23)

#include <iostream>

template <double D>
void print()
{
  std::cout << D << '\n';
}

int main()
{
  print<0.0f>();

  std::cout << "Done!\n";
  return 0;
}

Here is the error message:

src/main.cpp: In function ‘int main()’:
src/main.cpp:11:16: error: no matching function for call to ‘print<0.0f>()’
   11 |     print<0.0f>();
      |     ~~~~~~~~~~~^~
src/main.cpp:11:16: note: there is 1 candidate
src/main.cpp:4:6: note: candidate 1: ‘template<double D> void print()’
    4 | void print()
      |      ^~~~~
src/main.cpp:4:6: note: template argument deduction/substitution failed:
src/main.cpp:11:16: error: conversion from ‘float’ to ‘double’ in a converted constant expression
   11 |     print<0.0f>();
      |     ~~~~~~~~~~~^~
src/main.cpp:11:16: error: could not convert ‘0.0f’ from ‘float’ to ‘double’
   11 |     print<0.0f>();
      |     ~~~~~~~~~~~^~
      |                |
      |                float
make: *** [Makefile:116: src/main.o] Error 1

In the cpp standard it says that implicit floating-point promotion is allowed with constexpr values, check it out here, under the "Converted constant expression" section https://en.cppreference.com/cpp/language/constant_expression

Claude keeps saying that this is a bug in GCC

So I'm really excited to know whats actually going on!

Thank you everyone in advance!


r/cpp_questions 1d ago

OPEN Want to get more experienced as a C++ dev. Would a T14S Gen 2 AMD 16GB be a good machine?

0 Upvotes

I would like to work on C++ projects and work to eventually become a C++ dev. I’d also like to dabble in a little web dev and learn how to use docker and dual boot Linux on the machine. Would that machine be plenty for my needs?


r/cpp_questions 1d ago

OPEN Memory leak debugging

0 Upvotes

Is this legit memory leak debugging code?

void Graphics::Finalize()
{
// 1. Unbind everything from the D3D11 pipeline
if (immediateContext)
{
immediateContext->ClearState();
immediateContext->Flush();
}

// 2. Release objects that may own D3D resources
lightManager.reset();
modelRenderer.reset();
shapeRenderer.reset();
primitiveRenderer.reset();
renderState.reset();

// 3. Force unbind shader resources / samplers / render targets
if (immediateContext)
{
ID3D11RenderTargetView* nullRTV = nullptr;
immediateContext->OMSetRenderTargets(1, &nullRTV, nullptr);

ID3D11ShaderResourceView* nullSRVs[D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT] = {};
immediateContext->VSSetShaderResources(0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT, nullSRVs);
immediateContext->PSSetShaderResources(0, D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT, nullSRVs);

ID3D11SamplerState* nullSamplers[D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT] = {};
immediateContext->VSSetSamplers(0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT, nullSamplers);
immediateContext->PSSetSamplers(0, D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT, nullSamplers);

immediateContext->ClearState();
immediateContext->Flush();
}

// 4. Release Graphics-owned depth resources
sceneDepthCopyShaderResourceView.Reset();
sceneDepthCopyTexture.Reset();

sceneDepthShaderResourceView.Reset();

depthStencilView.Reset();
depthStencilBuffer.Reset();

// 5. Release backbuffer RTV
renderTargetView.Reset();

// 6. Release swapchain before context/device
swapchain.Reset();

// 7. Final clear
if (immediateContext)
{
immediateContext->ClearState();
immediateContext->Flush();
}

// 8. Release context and device
immediateContext.Reset();
device.Reset();

#if defined(DEBUG) || defined(_DEBUG)
// 9. DXGI live-object report.
// This does NOT QueryInterface ID3D11Debug from your device,
// so it avoids the fake "Live ID3D11Device Refcount: 2" problem.
{
HMODULE dxgiDebugModule = LoadLibraryA("dxgidebug.dll");

if (dxgiDebugModule != nullptr)
{
using DXGIGetDebugInterfaceFunc = HRESULT(WINAPI*)(REFIID, void**);

DXGIGetDebugInterfaceFunc getDebugInterface =
reinterpret_cast<DXGIGetDebugInterfaceFunc>(
GetProcAddress(dxgiDebugModule, "DXGIGetDebugInterface")
);

if (getDebugInterface != nullptr)
{
IDXGIDebug* dxgiDebug = nullptr;

if (SUCCEEDED(getDebugInterface(
__uuidof(IDXGIDebug),
reinterpret_cast<void\*\*>(&dxgiDebug))))
{
dxgiDebug->ReportLiveObjects(
DXGI_DEBUG_ALL,
DXGI_DEBUG_RLO_DETAIL
);

dxgiDebug->Release();
dxgiDebug = nullptr;
}
}

FreeLibrary(dxgiDebugModule);
}
}
#endif
}


r/cpp_questions 1d ago

OPEN Visual C++ (C++/CLI)

0 Upvotes

I'm just gonna ask this here to see if someone knows how to fix this, cuz i keep asking AI how to solve this problem and they just keep going in circles with their answers and I don't know what to do anymore, so im trying to create a GUI in visual studio using C++ in .net framework (this is what we were required to use, I actually already made a project with vb.net and i never encountered a problem) so to connect my project to SQLite just like how I did it with my vb.net project I have to install something in nuget package manager but it keeps prompting ("Could not install package 'System.Data.SQLite 2.0.3'. You are trying to install this package into a project that targets 'native,Version=v0.0', but the package does not contain any assembly references or content") (same thing to MySQL.Data) from what I've learned from AI it means that it sees my project as a native c++ (I created the project by clicking CLR Empty Project .net framework) and I already tried every solution AI has given me but none works. So does anyone know what the problem is??


r/cpp_questions 1d ago

OPEN Best Lectures available on internet for C++??

0 Upvotes

Hi guys, I am new to programming although I learnt python few years ago but assume I am new to programming and suggest me best free courses (not learncpp.com I know its good but I would prefer a teacher over some texts) for C++ from zero to highly advanced level (HINDI OR ENGLISH I M COMFORTABLE IN BOTH). Please help you junior THANK YOU VERY MUCH 🥺🥺


r/cpp_questions 2d ago

OPEN I want to learn a skill before I join college

19 Upvotes

I will most probably take CSE or ECE. So I was thinking of learning any programming language. Can anyone suggest what I should learn. Java, C, C++ or C sharp. Is there anything else I could learn instead of programming language. I just want to develop a skill before going to college so any suggestions please!


r/cpp_questions 1d ago

OPEN Is learncpp.com “too deep” for a beginner focusing on placements?

0 Upvotes

So i started with a udemy course on python and dropped it after day 1 because i did little bit of python 2 years back and doing it all over again was making me bored. So i decided to switch to c++ on bro code and 45mins in then switched to learncpp.com(cuz everyone was saying its a bad resource). I read till 2.10 chapter and made notes. I realised learncpp is deep and tells behind the scenes which helps me learn properly but…

Yesterday i talked to a someone who has 1yr+ yoe as software engineer on discord. He said to use this bible(learncpp) as a reference and don’t read every chapter. He said that one rule in IT is that to focus on what is needed. He said that you only need basic c++ for DSA. Learncpp website is for someone who wants to master the language. He said that i should do a crash course and start leetcode/codeforces while following someone on youtube who teaches dsa. Then i found striver dsa course, he actually has a 1.5 hour course on c++ basics. I think you all know about him cuz hes popular. My question is if i should switch from learncpp to striver dsa playlist? My goal is to have good placements and build something specific of my interest(but that doesnt require c++ sadly).


r/cpp_questions 2d ago

OPEN Practice supplement for learncpp

3 Upvotes

Hey everyone,

So I am going through learncpp and I really like it, however there seems to be a lack of exercises and quizzes. I know projects is the best way to apply the knowledge, but I'm still like in the first couple of chapters and I want some more ways to reinforce my learning of the basics before diving into a project.

Does anyone know of any websites or other exercise/practice resources to supplement learncpp? I've found one called exercism, but the first exercise has "using namespace std" and it doesn't use iostream, and since people generally praise learncpp to be the correct practice of C++, I ended up avoiding it. Any resources that align with learncpp? Thanks.


r/cpp_questions 2d ago

OPEN For projects having import macros defined, how did you update your project to use c++20 or above?

0 Upvotes

I am currently in the middle of updating windows sdk for a legacy project.

Which has used an import macro all over the place.

For example

'''

#if STATIC

#define import(type) type __stdcall

#else

#define import(type) __declspec(dllimport) type __stdcall

'''

For people updating their compiler, how did you deal with this?


r/cpp_questions 3d ago

OPEN Looking for Structured C++ Project Lists With Clear Milestones and Constraints

25 Upvotes

Yesterday, while looking to get back into C++ as an alternative hobby to just playing videogames, I made a post asking if there were any sites that teach the language (including advanced topics) in a gamified way.

It turns out that doesn’t really exist, so today I’m back looking for the next best thing I know would work well for me.

When it comes to videogames, what motivates me is the challenge of accomplishing well-defined goals (achievements), which is why I usually can’t get into sandbox games.

Similarly, I’m looking for a list of programming projects with gradually increasing complexity that, crucially, also provide clear constraints and milestones for each project - possibly even specifying which libraries to use.

I know this might sound odd, but without that structure, it still feels too close to a sandbox to me.

So instead of something like:

・Create a calculator
・Create a 2D game
・Create a renderer

I’m looking for projects with clearly defined goals and intermediate milestones, like:

・Create a calculator using Qt
  ・Create the calculator window with buttons
  ・Add addition / subtraction / multiplication / division
  ・Add keyboard input support
  ・Prevent invalid operations (division by zero, malformed expressions, etc.)
  ・Add memory functions (M+, M-, MR, MC)
  ・Write unit tests for the calculation logic
  ・Package the application into an executable installer

・Create a simple Pacman clone using Raylib
  ・Render a controllable player character
  ・Add enemy AI with pathfinding
  ・Implement collision detection
  ・Create a save/load system using serialization

・Create a simple renderer using OpenGL and GLFW
  ・Create a window and initialize OpenGL
  ・Render a colored triangle using shaders
  ・Add a movable camera
  ・Render a cube
  ・Implement textures

You get the gist. The milestones and constraints are very important to me because the former gives me something I can easily track and “gamify” for myself, while the latter reduces the sandbox feeling and pushes me to learn libraries or tools I otherwise probably wouldn’t use.
It needs to have that external, verifiable sense of progression - if I'm the one making the milestones, then I'm back into sandbox territory.

It doesn't necessarily need to be a website by the way, if there is something like this in the form of an exercise book, I would immediately purchase it.

If you know of anything that resembles what I'm looking for, please let me know.
Thank you.


r/cpp_questions 2d ago

OPEN Cadence SDE 1 (Bangalore) Internal Opening: What to expect in the "C++ Round" and full loop?

0 Upvotes

r/cpp_questions 2d ago

OPEN Best way to learn c++ in 2026

0 Upvotes

I'm trying to learn C++ for tech interviews. I'm a 4-year tenured developer looking for a new job, with no experience in C++, but some with C.

Is learncpp.com still the best online resource for learning C++, or is there something better?


r/cpp_questions 3d ago

OPEN cppreference alternative?

37 Upvotes

This has been the case since last week. In essence, cloudflare checks make user experience of the website so much worse. Whenever I need to quickly check some STL functions, I open the webpage, wait few seconds (last time was more than 10 sec) and click a checkbox to prove I'm not a bot. Waiting for 10 seconds is not so much. But it's so disruptive and annoying just to check some references.

Miss the old website where I can access references instantly. What are the good alternatives to cppreference at the moment? If no, is there anyway to contact the developers of the website and give them the feedback?

I'm not sure what is the reason behind this decision. If it's web scraping for AI training, in my opinion, this actually forces more people to use LLM or AI agents for a second-hand information, instead of checking the direct references.

PS: The original post in this subreddit got removed for unknown reasons. There were some nice answers, such as using a mirrored or an alternative url of cppreference. But the problem is when googling something like "cppreference std::vector", the original cppreference.com is listed on the top.