What could be the output?
Reddit » C++
by /u/zeeshanilyaas
6h ago
submitted by /u/zeeshanilyaas [visit reddit] [comments ..read more
Visit website
Best way to learn c++ in a couple weeks?
Reddit » C++
by /u/Malice-Observer089
11h ago
I have a final that I want to get a really good grade in and I know little to nothing about c++. I can recognize variables and certain functions but that's about it, I've done some debugging but never truly wrote a program. So anyone have any suggestions? although learncpp.com is extensive and full of info it drags the material so I'd rather do something more effective and hands on. submitted by /u/Malice-Observer089 [visit reddit] [comments ..read more
Visit website
What now?
Reddit » C++
by /u/Uknown2235
11h ago
So guys, I've completed the C++ given in W3 Schools website. Is it enough for me to jump on something like openGL. Also what other things can I learn after doing this? My main interest is in field of AI like Computer Vision, Machine Learning, Game DEV. SHould I learn Python after this or stick to C++ and learn some libraries. Also what freelancing oppurtunities can I get if I continue with c++? Or should I continue with C++ and learn DSA? submitted by /u/Uknown2235 [visit reddit] [comments ..read more
Visit website
Running into a bug I can't figure out
Reddit » C++
by /u/RaveLordeNito
16h ago
Hey folks, Currently a CS student and am writing a D&D 5e character creator on the side as programming practice. I don't wanna waste my instructors time by asking for help on outside projects so here I am. I have an array of strings to represent the names of the ability scores. Then later I ask the user which one they'd like to change and use the input -1 to print out the name. I've provided, what I think is, all of the relevant code below. When I go to cout the last line, it doesn't print the abilityArr[scoreToChange] when I choose 1 for strength. I went in with the debugger in CLion and ..read more
Visit website
Beginner C++ student. Help with cleaning up program and efficiency.
Reddit » C++
by /u/pdxLink
21h ago
​ As you can see I'm repeating an error check after every user input. Some advice on having a global check on all inputs. Thanks. submitted by /u/pdxLink [visit reddit] [comments ..read more
Visit website
Looking for suggestions on design choice
Reddit » C++
by /u/WhatIfItsU
21h ago
I have below class hierarchy. I want that there should be only one instance of MultiDeckerBus in my entire application which is shared among multiple owners. To achieve this, I made constructor of the class private and put a static getMDBus function. getMDBus function creates a shared pointer to the instance and everyone else can call this function and get the shared pointer. Because I don't have control over other places in the code, I have to return a shared pointer. Similarly for SleeperSeaterBus. I am wondering if there is another elegant way to achieve this? class Bus{ public: virtual vo ..read more
Visit website
In Dire Need Of Help
Reddit » C++
by /u/Rough_Concentrate852
1d ago
I am currently working on a project due today where I am trying to make a robot that you can play tic tac toe with using an elegoo r3 car and the serial monitor. I can’t get the code to input moves from ultrasonic sensor. The code repeatedly states, ‘enter move’. It will also get stuck driving forward. I am looking for tips on how to troubleshoot it or any improvement tips. the code is as follows int gameStatus = 0; int whosplaying = 0; //0 = Arduino, 1 = Human int winner = -1; //-1 = Playing, 0 = Draw, 1 = Human, 2 = CPU include <Servo.h> Servo myservo; int Echo = A4; int Trig = A5; in ..read more
Visit website
Qengine - a powerful inlined binary obfuscation toolkit for Windows C++ Applications
Reddit » C++
by /u/chemiculs
2d ago
qengine qengine is a highly configurable, compiler-independent, and largely inlined binary obfuscation toolkit designed for C++ Standard 17 (or higher) Windows Applications. It offers ease of use while making your code extremely difficult to understand, especially for classic disassemblers like IDA. What is qengine? qengine is a polymorphic engine (meaning an engine that takes multiple forms/permutations) for Windows designed to make reverse engineering significantly harder. It aims to make binaries appear unique and unrecognizable at each independent runtime. * qengine is fairly well test ..read more
Visit website
C++ Binary File has weird symbols
Reddit » C++
by /u/Tiny_Jello2796
2d ago
void writeBinaryFile(const string& filename){ ofstream file(filename, ios::binary); if(file){ file.write(reinterpret_cast<char*>(&groceryItems), sizeof(grocery)); cout << "Items saved to file.\n\n"; file.close(); } else{ cout << "Could not save file."; } } Above code exports items in struct array into a binary file. But the file exported has random characters. The binary file output is: p\N Carrots `N Carrots @ @À`N` 04/27/2024 Any help is appreciated submitted by /u/Tiny_Jello2796 [visit reddit] [comments ..read more
Visit website
Need help on this assignment.
Reddit » C++
by /u/biguzivert_
2d ago
Can someone please offer me a solution as to why after outputting the first author’s info, the vertical lines and numbers are then shifted left for the rest of the output. 1st pic: The file being used for the ifstream 2nd pic: the code for this output 3rd pics: my output 4th pic: the expected output for the assignment submitted by /u/biguzivert_ [visit reddit] [comments ..read more
Visit website

Follow Reddit » C++ on FeedSpot

Continue with Google
Continue with Apple
OR