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)
Issue with scale function in class square
I've been trying to implement the void scale function in class square but still did not managed to g...
[4 replies] Last: Playpro10, can you post the text of the assignment. It will help great... (by dhayden)
by shinyy
Not getting the right output
Sorry for the numerous posts I made. As I'm new to C++, I really do need help. Hope you will underst...
[9 replies] Last: As I have said earlier, the center() function returns the first point,... (by Peter87)
Return multiple value
hi there i want to return 2 or more value in function but it's not allowed ! i saw a lot of ways t...
[6 replies] Last: A rather typical alternative: #include <iostream> #include <tuple> ... (by Niccolo)
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...
[3 replies] Last: So... my deleted code wasn't entirely deleted for no reason. I had to ... (by broon)
by mpg
Recursion problem with string (1,2)
Can you help me with these two problems with recursion? 1) I have a string : define the dimension 2)...
[22 replies] Last: You did use an array. string s; //Declare a string - which holds a ... (by zapshe)
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...
[6 replies] Last: Yes, sure! Your explanation and the code snippet helped me think about... (by aligh)
by lutein
Question about Template class operator overloading (Absolute Beginner)
Here is my source code. It's a simple matrix class I want to implement + operator overloading for ...
[2 replies] Last: Thank you very much!, JLBorges. I will try to understand that code. Th... (by lutein)
vending machine using strusctures
hello so my coding prompt is "Write a program that simulates a soft drink machine. The program ...
[7 replies] Last: Hello mercedx, Changing the function parameters to match the prototyp... (by Handy Andy)
add list using pointer
everything is fine, but when I add new node to list, the head and the tail both take that node and r...
[1 reply] : [quote=pnthoai123]everything is fine That's what the watchman on the ... (by lastchance)
by aligh
code compilation error using thread and mutex
I'm trying to learn the basics of threads, mutex and function objects. Here's my test code trying to...
[2 replies] Last: Thank you @Repeater! Works perfectly. (by aligh)
by GSid
Bitwise operations
hi all i am having trouble with a problem which requires me to set a number to the bottom 4 bits ...
[4 replies] Last: combined = (counter << 4) | tL.q; gotta pay attention. Good luck! (by Duthomhas)
by shinyy
Compilation error
I am getting a compilation error which I can't resolve on my own. Don't really know what to change r...
[4 replies] Last: when you do `polygon ' you get a PointType `PointType' does not have a... (by ne555)
Valid Operations with Arrays
I'm on the part which shows valid operations with arrays, and this one is confusing me. What is the ...
[10 replies] Last: Ah, the tutorial. (by Duthomhas)
For loop help
So this may be a very dumb question but I want to make that 650.0f go down by 490 everytime it loops...
[5 replies] Last: Ah never mind, I just took the float value = 650.0; out of the loop s... (by zapshe)
by shinyy
Class constructor compilation error
I am receiving a compilation error which I am quite vexed about at this point for my polygon constru...
[1 reply] : new Polygon::PointType ; This is an attempt to create an an array ... (by Repeater)
C++ cannot call member function w/o object
Hi, I am getting a compilation error saying "cannot call member function ‘void Point::PointType(fl...
[12 replies] Last: You still haven't explained what this code is trying to do. It's very... (by dhayden)
Adding Unique Items to Map & Counting Duplicates
I have an unordered_map like so: std::unordered_map<std::string, int> materialToAmount; // ^ Exam...
[13 replies] Last: > Would I only use unordered maps if I had thousands, or millions, of ... (by JLBorges)
by shinyy
pixel function C++
I have been trying to get the function pixelData() in class background below to work but to no avail...
[5 replies] Last: what error? I see nothing wrong there (by jonnin)
Pages: 123... 38
  Archived months: [mar2019]