C++ - Reddit
227 subscribers
48 photos
8 videos
1 file
25.3K links
Stay up-to-date with everything C++!
Content directly fetched from the subreddit just for you.

Join our group for discussions : @programminginc

Powered by : @r_channels
Download Telegram
B+-Tree library

I was looking for suggestions on good implementations of in-memory B-Trees or B+-Trees that I could use for an in-memory database. Ideally implementations that include benchmarks. Any suggestions?

https://redd.it/ny6egm
@r_cpp
FREE Udemy C Programming Course - Master the Fundamentals of Programming in C Programming Language

removed

https://redd.it/nybib8
@r_cpp
Best learning resources for an experienced developer in a different language?

Hello,

I'm looking for the best learning resources that anyone can recommend. I'm fairly experienced with C# and JavaScript but I have wanted to start learning C++ for game development.

Is there a good tutorial or something out there anyone can recommend to learn the C++ specifics and not just general programming logic (like loops, if statements, classes, etc)?

https://redd.it/nylk61
@r_cpp
One thing I want the standard to remove from cpp

I want the standard to remove initializer_list from C++ std. It drove me nuts when trying to understand which c'tor gets called and when multiple template classes involved

using listOfPersons = std::vector<std::unorderedmap<std::pair<Person, int>, std::string>>;
listOfPersons persons {....};
std::vector<std::unique
ptr<Person>> p {makeunique<Person>(3), .....};

I tried to understand the implicit conversions and which c'tor would get called but I can't quite get it.

If the std could get rid of it , it would help the future versions of C++.

Sometimes old school is better. we can reserve and put things in vector like we used to. It's better to write a little verbose than using intializer\
list imo

https://redd.it/nypmy1
@r_cpp
C++ coroutines tutorial part-4

Hello everyone. I just published Painless C++ coroutines Part-4 on medium.com. Here's the unrestricted access link to it.


For those who are interested in the first three parts, the unrestricted access links are below
1. Part 1
2. Part 2
3. Part 3

https://redd.it/nytrak
@r_cpp
Small CPP compiler

I would like to know if there are small C ++ compilers (C ++ 11 or higher) like TinyCC but for C++, I have the impression that there are none or quite old ones ?

If possible Open Source

https://redd.it/nywc33
@r_cpp
Console just went out! This week we had an interview with Mikael Ronstrom, the lead developer of RonDB! We talked about his PhD, his religion, and what it was like working with the creator of MySQL! I thought /r/cpp might be interested in checking it out! :)
https://console.substack.com/p/console-57?r=3cbez&utm_campaign=post&utm_medium=web&utm_source=cpp_subreddit

https://redd.it/nz19cy
@r_cpp
how to implement range constructor based on iterator

Hey, I have to implement template vector, based on the original vector class, and I have to implement a range constructor based on iterator.

This is the signature of the function:
template<class T, size_t StaticCapacity\>
template<class InputIterator>
vl_vector<T, StaticCapacity\>::vl_vector(InputIterator first,
InputIterator last);

You can see that T, staticCapacity are generic members.
can anyone have clue how to implement it?

thanks!

https://redd.it/nzg5ki
@r_cpp
Simple C++ Console Game using Implementation of Linked List,Queue, or Stack Inquiry

Hello everyone! I'm still a newborn when it comes to programming so keep that in mind.I want to challenge myself to make a simple C++ Console Group Game with the implementation of Data Structure. Making a simple 1v1 game with the implementation with any one of the structure seems easy enough but I want to utilize any two of the data structure for the game ( i.e LL & Queue, Queue & Stack, LL & Stack, etc ). The problem is that I don't have any idea on any group game that would utilize any of these two data structure type. So here I am asking on the internet on any simple game ideas that is:

- A group game ( one group can be formed from more than one individual )

- Each group member would take turn

- Utilizes any of the two data structure ( LL, Queue,Stack )

To be fair, I don't know many games especially card games which is why I'm stuck on this task.

Hope somebody can help me out, I'd appreciate it :)

https://redd.it/nzhvoe
@r_cpp
What first project to make for my resume?

Hello everyone,
I have grasped all the knowledge I could on c++ but now I am stuck in a phase called company recognised project (jk). I don't know what and where to apply this knowledge so that it could show my skills.
I am also learning Qt .

Note:please don't recommend any games to make I am really not interested in them.
Thank-you.

https://redd.it/nzq6du
@r_cpp
C++20 Modules build script (Python and g++)

Hello!
I have created a Python script for building projects using C++20 modules :
https://github.com/J-Vernay/cpp20.py/tree/main

It tracks dependencies between files (both #include and import) and compile them in order using appropriate g++ commands.

It also provides information display (list of source files and their module, dependencies...).

This can be handy to experiment C++20 modules while waiting for professional build systems to handle modules.

https://redd.it/nzsnl1
@r_cpp
C++ Coroutine tutorial part-5

Hello everyone. I managed to publish the fifth part of my coroutine tutorial series. Here's the unrestricted access link. In this post, I demonstrate the usage of coroutine with co_return. Hope you find it useful.

https://redd.it/nzvvo9
@r_cpp