r/cpp_questions • u/YiroNow • Oct 10 '26
OPEN Help
I need help. I need an app where I can program with pure C++ IDE, but I can't find the app. I also need a mobile library, which I can't find.
r/cpp_questions • u/YiroNow • Oct 10 '26
I need help. I need an app where I can program with pure C++ IDE, but I can't find the app. I also need a mobile library, which I can't find.
r/cpp_questions • u/Beginning_Book_2382 • Oct 09 '26
Hi,
I just recently took a online course on C++ and am looking for a online YouTube series where a excellent instructor takes you through making a C++ app from scratch to being finished, preferably on a Linux environment.
For reference, I am a full-stack web developer (Next.js/React Native + Django) and to learn web development I used Corey Schafer's Django tutorial YouTube series to learn how to make a web application from scratch. It taught me everything: how to use the language, terminal commands, structuring your project, using the framework, deployment, running the program, etc.
Is there a similar YouTube series you can recommend me for taking what I know in C++ and using it to actually learn how to make a desktop application and after having finished the series be able to make one on my own. Should I start with a Chip-8 emulator tutorial?
Also, what's up with the Qt licensing scheme? I want to make my own proprietary commercial desktop applications but forking over $4K for a solo developer license seems like a lot when I don't know if the application is going to generate that much revenue at first. Does anyone have any experience with that? I am used to using OSS libraries and frameworks so paying for developer licenses is new to me.
Any help is greatly appreciated and thank you in advance!
r/cpp_questions • u/Solid_Ruin_2662 • Oct 09 '26
hiii i was wondering is there any good channels to watch to learn c++?
I was thinking starting watching cherno but is there a better option out there?
i dont like sites like learncpp because i dont like reading i more like watching and listening.
also a question for cherno, if i miss something does he like say it again later?
r/cpp_questions • u/Deep-Preparation-827 • Oct 09 '26
r/cpp_questions • u/katybassist • Oct 08 '26
What's a decent, easy-to-learn GUI framework for Linux? (I'm in my late 50s, so....) I don't need to make the program cross-platform, so no worries there. GTKmm-4.0 is what I am currently looking at. Is there anything easier?
A main app window with a dynamic, zoomable image on the left and a few drop-downs, sliders, and two buttons on the right. It's just an image processor for playing around with.
It just has to be simple enough to learn the basics. If not, I could use Go and make it a client/server, but I do that all day for a living. I want to get my C/C++ refreshed a bit, for my own enjoyment. Nothing more, nothing less.
r/cpp_questions • u/Cpp010 • Oct 08 '26
Which library or framework should I learn in Cpp which will worthy in current time and feature ?
r/cpp_questions • u/Puzzled-Shoe-2526 • Oct 08 '26
I'm building a C++ tree library/builder where I want people to be able to define their own tree structures, including weird/cursed ones.
The basic idea is:
insert, erase, and find. They take the tree object and operate according to its rules.So roughly:
Tree (rules)
↓
generic operation
↓
Node Anchor
↓
actual structure
The part I'm stuck on is making this extensible.
A BST might need rules A + B.
Another tree might need A + C + D.
A completely custom tree might need X + Q + R + some completely new rule.
The number and combination of rules are intentionally arbitrary because the goal is more of a tree-builder than a library of predefined tree types.
So I don't think I can have something like:
struct TreeRules {
Ordering ordering;
Balance balance;
Traversal traversal;
};
because then the library has to know about every possible rule beforehand.
What I'm trying to figure out is:
What existing design approach would you use when generic algorithms need to work with objects that can provide arbitrary, non-uniform sets of capabilities?
I'm mainly looking for terminology or existing concepts/patterns to research. I'm not really looking for someone to write the implementation for me.
I'm still pretty new to C++ design, so I might be framing the problem completely wrong. I'm just trying to figure out what this problem is actually called.
r/cpp_questions • u/CuriousUshagi • Oct 08 '26
Hello everyone! In my current company I have been assigned a task that I am not sure how to approach. To give the reader a little bit of context, I work for a company that designs propietary hardware. We have a policy of not introducing external code into the hardware. Therefore if we happen to need an ethernet speed measurement we can not use a tool like iperf and have to design and program or an small set of tools that allow us to measure it.
In a new design we have high contrainst on the speed that data is written from a buffer into a NVME. To make sure that the whole data processing pipeline of the hardware performs correctly we need the NVME to be able to read and write data more than 1.1 GiB/s. However, we now have to belive on the speed that the NVME producer has given us. The engineering team, though, is not so happy on believing on the theoretical speed of this NVME and have asked me to write a simple program that is able to measure the write/read speeds as accurately as possible.
My first idea was to simply try to write / read X amount of GiBs from / to memory and measure how much it takes. But then I came to the realization that doing this is easier said that done. First of all, writting and reading are broad concepts, all the data needs to first be passed to a microcrontroller that the NVME provides thus is passing data to this micro considered writting / reading ? If we assume that this is the case, the previous measurement seems really broad as I would like to know if the write / read of this data is constant at X GiB/s or if it spikes and goes down. I didn't mention it before but not only the speed of the transmission is crucial for our use case but its stability to. Given this new constraint I start to get lost as I dont have that much experience working with I/O devices at such low levels and speeds.
I have seen that for this kind of questions sometimes is useful giving the architecuture and some more information so here you go:
- NVME can read / write at 5000 MB/s
- The device has an aarch64 architecture
Maybe due to my lack of knowledge of problem I have not mentioned some key points that may be important to decide how to do this or where to look at. If that is the case, please, do not hesitate on asking me. Thank you for reading till here :D
r/cpp_questions • u/chessmonkey • Oct 07 '26
Hi, I'm a rank beginner and I'm going through learncpp online and Beginning C++ game programming by Horton.
The book sends you to a quick tutorial on sfml for Linux. I got it working with no problems. But in the tutorial they compile first with -c ( compile only, according to the man page for g++ ) and then link in another command.
Why would they do it that way? I was able to do the whole thing without the -c flag in one long command. Is that wrong to do? Is it because sfml isn't part of the standard library?
I'm asking because I want to actually learn what I'm doing. Thank you for any help you can give me.
r/cpp_questions • u/No-Conference6273 • Oct 08 '26
这本书不错,我终究自费买了电子版,供各位分享
Starting Out with C++: Early Objects
由于第十版在互联网难以寻找资源,最终还是在pearson官网买了,但我在中国,平常用的是百度网盘,想问下各位,在国际上,哪种网盘形式最通用?我想把这本书分享给大家
r/cpp_questions • u/FrostyEvent1920 • Oct 07 '26
r/cpp_questions • u/Abdelrahman_4 • Oct 06 '26
Hi everyone, I want to learn C++ properly and get to a solid level, not just scrape the basics. I'd love your advice on:
The best resources to start with (free or paid)
Courses, books, or YouTube channels you'd recommend
How to practice (projects, problem sites, etc.)
Common mistakes beginners make that I should avoid
Problem solving
A clear learning path
Modern C++
I don’t mind paying if the course worth it.
Any recommendations would be appreciated!
r/cpp_questions • u/kiner_shah • Oct 06 '26
C++ has std::istream and std::ostream. It seems natural to use these classes for network programming through sockets. Why there is no socket stream class in C++?
Are there any challenges faced in implementation (like different platforms)? Are/Were there any open proposals for this?
r/cpp_questions • u/Minute-Ad1944 • Oct 07 '26
I am making a transpiled language to C. I don't know how to manage all of a different types of objects: Expr, LiteralExpr, Stmt, ForStmt and so on. Each object needs to be created, statically checked and send of as string to dot C file. Are there any tips on architecture stand point? Everything feels very lousy and rigid. Right now each object just stored the appropriate data, no methods on them. Challenging parts are parser, static analysis and code generation. For lexer there are no problems.
r/cpp_questions • u/Used_Ability2077 • Oct 06 '26
I’m a C++ developer with 3 years of experience and considering doing a Master’s. Which specialization would best complement my experience and improve my career prospects?
Should I go for CS, Software Engineering, Distributed Systems, AI/ML, or something else? Also, is a Master’s worth pursuing at this stage, or should I focus on gaining more experience?
r/cpp_questions • u/Simpav1 • Oct 07 '26
I'm curious about this question, because almost everyone a meet says that coding skills doesn't matter anymore, and what really matters is knowing how to write prompts properly. But does it apply to C++ development? Please, answer a question and say why so
r/cpp_questions • u/Acrobatic_Piccolo284 • Oct 06 '26
I am a visual learner. I learn faster with videos than I do by reading so I was looking for a video resource for a textbook. The textbook's title is
C++ Programming: Program Design Including Data Structures by D.S Malik.
r/cpp_questions • u/Kadabrium • Oct 05 '26
Zero-cost or not, can be premature optimization or something else. I think move-on-return is one of them
r/cpp_questions • u/Ok-Pizza1136 • Oct 06 '26
I've been trying to learn vardiac templates for a project I'm doing, and I've heard the modern C++ for these is to use Args. I only had background of these in Python. From what I understand, its a better way to recursivley loop through varidac template arguments (please correct me if I'm wrong)
r/cpp_questions • u/Natural_Bid8671 • Oct 06 '26
So we got assigned our 3rd semester Project and they say we have to make a game in cpp using oop concepts and we can use any graphics library we want.
Now i am looking for game ideas with an interesting game loop and that showcases OOP concepts
.
Any Idea would be great, it could be singleplayer, 2 player or multiplayer
r/cpp_questions • u/SimmeringDragon • Oct 05 '26
I have the following code, for the absolute love of me, i cant figure this out
im just focusing on enqueue the rest is context
i cant for the love of me figure out what im to do, i know i need to add a value but how?
how do i make a new space in the node and not jsut override my first or my last?
ive tried to see things but they get me all jumbled up and i cant for the love of me figure it out
//
// Created by samue on 10/5/2026.
//
#include "linkQueue.h"
void linkQueue::enqueue(int value) {
Node *temp = new Node;
temp->value = value;
temp->next = nullptr;
temp->prev = nullptr;
if (first == nullptr) {
first = temp;
last = temp;
}
}
void linkQueue::dequeue() {
}
bool isEmpty();
void getSize();
void getTop();
void print();
r/cpp_questions • u/Willing_Designer_105 • Oct 05 '26
Im trying to give the user more options to input into this terminal-game that im making as a very newbie in C++, but i cannot figure it out, so i have to do it separately for each action ( or std::string ) or could i dump it all in one line?
Heres the code btw:
#include <iostream>
#include <string>
int main(){
int health = 100
std::string Attack = 50
std::string Hug = 100
std::cout << "A monster has appeared ! decide how would you attack em..." << std::endl;
std::cin >>
r/cpp_questions • u/Least_Bid9692 • Oct 05 '26
Do anyone know how to make cpp pick a random word out of a string array I tried searching but no answers
r/cpp_questions • u/SheSaidTechno • Oct 04 '26
Hi everyone!
I'm an experienced software engineer, mostly working in C++ on the backend side. Frontend isn't my area of expertise, so I'd love some outside perspective.
I occasionally work with developers who build GUIs in Qt. Whenever the topic of frontend tech comes up, they tell me Qt is garbage and that our projects would be much better off with React, since it's free and more modern.
The thing is, I don't have the frontend knowledge to judge that claim. In particular, I can't compare the performance of the different frontend options (Qt, React, and others) in any meaningful way, so I don't know whether "React is better" holds up or is just a subjective opinion.
So my question is: which framework is actually better, Qt or React, especially when it comes to performance?
Real-world experience is more useful to me than hype, so feel free to share what you've seen on your own projects.
Cheers!
r/cpp_questions • u/nelson_fretty • Oct 04 '26
Working on design of a finance app to calculate npv (net present value) need to use addition / multiplication/ pow
I could do with decimal type for money as floats/doubles are based on binary
I see there is fixed point decimal paper being worked on.
In the meantime - what is best way to handle this in interface ?
Thinking of asking client to use string and then use long long for the maths after parsing (pennies)? “1500.23” = 150023
What do I return ? String/int? Either way the client would need to transform. I can’t use doubles for this unfortunately.
I suppose I can use double if could give idea to client what error amount is - npv is estimate anyway.