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)
Why won't my selection sort, sort the code
My code is remaining unsorted when i run the program? Also where would i prompt the user to choose a...
[3 replies] Last: Why would you think it should do anything other than display some numb... (by jlb)
BMI calculator
Write your question here. Hi, I have to write a program who calculates the BMI for a male or fem...
[4 replies] Last: Also, if not already mentioned, the type of geslacht should be int, no... (by againtry)
What's wrong with my program? (Basic C++ Do While)
I'm currently doing an assignment for C++ (Beginners Class) and can't seem to get my program to succ...
[3 replies] Last: Thank you both Andy and Ganado so much for your help! Sorry about the... (by Struglling84)
array / vector
Hi, I am trying to practice some c++ problems and someone suggested leetcode, which I am failing mis...
[6 replies] Last: Same program with some more standard library: #include <iostream> #in... (by keskiverto)
Setfill and repeat
I am working on a lab and my code works with no errors. The problem is, she wants setfill used for d...
[4 replies] Last: Hello Tsunami, Now that I have had the chance to work with all the co... (by Handy Andy)
function-definition is not allowed here before '{'.
Why am i getting this error if i clearly stated it before main? (located by comment that says perfor...
[13 replies] Last: Okay got it, the better you become the better it should be organized a... (by FanOfThe49ers)
by alix
Remove item from C-array and shift
I am a beginner, and I want to delete an item from an array, non-STL. This doesn't seem possible...
[19 replies] Last: That is what std::remove() does as it doesn't change the size. However... (by seeplus)
a BUG!!
The code explains it all, I have a variable in my main function, I want to increment it via a functi...
[10 replies] Last: In C++ by default all arguments are passed by value . This means that... (by seeplus)
Size of Char in C++
Hello, Could you please explain this? Thanks #include<iostream> using namespace std; ...
[8 replies] Last: Reading a book about C isn't particularly helpful, unless you're going... (by kbw)
by alix
How to delete an object from heap allocated array
I am a beginner, and I want to delete an item from an array, non-STL. This doesn't seem possible? ...
[6 replies] Last: Object* o = new Object ; `o ' is an `Object', it is not a pointer ... (by ne555)
by alix
Adding Range Based Support to Class
I am trying to fix, so that range-based for loops are supported with my custom class. I am also tryi...
[9 replies] Last: If a non-pointer if returned then they are needed. They are needed in... (by coder777)
by DunDun
Help with formatting to a max width or wrapping text
Hey guys, I'm trying to figure out how to format my output with a max width so everything is lined u...
[1 reply] : 4 * 8 + 1 is 33, not 35. #include <iostream> #include <vector> #incl... (by lastchance)
by hnflrt
Why do i get this error?
The error i get cannot convert 'std::vector<double> to double in return at return aboveAverage; li...
[4 replies] Last: @hnfirt Are you trying to return the NUMBER of values that are greater... (by lastchance)
by Grime
(0 < size_t(0) - 1) is true
I came across this while writing code that resembles this: std::vector<int> nums; for (int ...
[13 replies] Last: Thanks (by Grime)
Using an ABC object as a class member
Hi I'd like to write a class which has a member variable which is an object of a type which inherit...
[1 reply] : If you want to use polymorphism, you would have getSOM() be a virtual ... (by Ganado)
Due Tonight and very new to this Need Help!!!!
Write your question here. Create a flowchart and Pseudocode using Visio and write a program using V...
[7 replies] Last: Another reason I ask is because we have to include and separate the in... (by Ashpipe86)
Fixed size permutation
Hello I would like to transform this code that it generates string permutation and not character per...
[2 replies] Last: Hello, thank you very much for your help I will go and see the link. T... (by annolliwohe)
by Chad9
Can u help me with this, please ? Create a room structure (C-style, no member-functions) with m...
[4 replies] Last: Hello Chad9, This may help. 1. Create a room structure (C-style, n... (by Handy Andy)
Pages: 123... 18
  Archived months: [jul2020]