by admin
Welcome -- read before posting!
Welcome to the beginner's forum in! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Valid Operations with Arrays
I'm on the part which shows valid operations with arrays, and this one is confusing me. What is the ...
[2 replies] Last: I got it from the c++ tutorial on this site, page 56 in the pdf. (by doodoohead01)
Getting started with backtracking
Hi there! I im interested in learning backtracking properly. Where can I finde some tutorials whe...
[1 reply] : It is shockingly easy, especially if you are using recursion. For exa... (by Duthomhas)
by shinyy
pixel function C++
I have been trying to get the function pixelData() in class background below to work but to no avail...
[4 replies] Last: Hi, I'm not sure if I am attempting it correctly, but is this how its ... (by shinyy)
Adding Unique Items to Map & Counting Duplicates
I have an unordered_map like so: std::unordered_map<std::string, int> materialToAmount; // ^ Exam...
[12 replies] Last: Apologies for my very late reply. I had some stuff I needed to get don... (by PiggiesGoSqueal)
by cs13
Confused with namespaces and templates
I am using the DIPlib code obtained from I have a simple program u...
[9 replies] Last: This took me about 2 minutes to pin down on the site. First, the retu... (by Niccolo)
Expeceted ; when I have one
Hi Sorry I this may seem like a stupid question but I am a beginner in C++, I really don't knonw wh...
[10 replies] Last: [quote=man gcc]-E Stop after the preprocessing stage; do not run the ... (by ne555)
by broon
Can't seem to ever get the right movement function for 2048
Exactly as title says, can't seem to do it. Here is my code, if you want to try to help. I deleted m...
[no replies]
by vysero
Trying to understand this line of code
I have this line of code here: m_delayOn( new GallatinCore::SettingValue( DelayOnStr, CommonJo...
[3 replies] Last: never mind I figure out how to do this in a different way thanks guys! (by vysero)
Do I use dynamic memory correctly ?
Hello, I'm a new dynamic memory allocator :) I'm working on projects for microcontrollers like Ard...
[9 replies] Last: Ok, thank you all for answers, especially Niccolo :) I'm still not su... (by GodIsDead)
Cookie PickUp Inheritance Game
I'm writing a code for class that is an inheritance pick up game, we were tasked to limit the player...
[2 replies] Last: - CookieCollect::SetupScreen() should call PickupGame::SetupScreen() -... (by dhayden)
C++ cannot call member function w/o object
Hi, I am getting a compilation error saying "cannot call member function ‘void Point::PointType(fl...
[11 replies] Last: Right, the direct call is wrong. but cleaning up the syntax (which I ... (by jonnin)
Question about heap memory in class
Hi all, I have used Node* new() inside my List class. How can I delete it inside the Node class its...
[3 replies] Last: the node IS the list, so it can't just self destruct. you are going t... (by jonnin)
by aligh
to reference or not to reference in function return type
I have the following class: class Person { public: Person(const string & name, int age): name...
[1 reply] : general rule of thumb: reference anything bigger than an integer. str... (by jonnin)
Whitespace question
I've been working on a banking system where you have a few options of what you can do. I'm not that ...
[5 replies] Last: A stream is a stream, whether it is std::cin or a file. If you need... (by Furry Guy)
by kitfox
Do I need to worry about allocating lots of tiny arrays?
I'm writing a program that needs to keep track of user defined attributes. I have a class that desc...
[12 replies] Last: A gigabyte is really REALLY big. Heck a megabyte is pretty big. As a... (by dhayden)
Ranked Choice Voting
I'm currently writing a program where it performs a series of ranked choice elections based on an in...
[5 replies] Last: I realized the rounds were optional If the rounds are optional then ... (by dhayden)
by aligh
Why the cryptic style?
This is the behavior of the STL unique_copy function, according to template <class...
[3 replies] Last: Ahh, thank you! Now, I see! (by aligh)
C++ operator test failed
I have been thinking for a while now why doesn't my operators work properly when I get to the condit...
[1 reply] : @playpro, One has to to do rather a lot to get your code to compile: i... (by lastchance)
Pages: 123... 37
  Archived months: [mar2019]