Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! 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)
by maple
accessibility about conversion from derived class to base class
 
Hello everyone, I am trying to understand the accessibility of derived class to base class. But it s...
[no replies]
about shared_ptr
 
first time to use shared_ptr and wrote the code below. #include <iostream> #include <memory>...
[3 replies] Last: Adding to what Seeplus and Keskiverto have already provided, here is h... (by TheManx)
sequential access / sequential containers?
 
I have been learning containers. Now learning sequenial, and it says " The data structure they imple...
[3 replies] Last: this can be a little confusing at first. do you know what a linked li... (by jonnin)
Homework help
 
I am supposed to write a program that prompts the user to enter the radius of a circle then removes ...
[1 reply] : I don't necessarily understand the problem, but here's how I rewrote y... (by mbozzi)
program ends unexpectedly
 
This is my code. Everytime I want to run for the 2nd or 3rd time, before i even get a chance to type...
[3 replies] Last: I tried putting the cin.ignore() on line 43 but now it says exited, il... (by coder0101)
How to check if input is valid, if not reask question.
 
I understand (!cin) but I need to check it for multiple user input variables, how do I do this? A...
[2 replies] Last: It depends on what you mean by "valid", but to check for valid integer... (by dutch)
using count() question (1,2)
 
I'm trying to use the count() to see if 2(or more) elements from row are in row . If false, then ...
[26 replies] Last: int cnt {} is an array of 3 ints to hold the counts. It is initializ... (by Brian845)
by Ch1156
How would I calculate attack hit percentage chance?
 
I'm having a little trouble with figuring out how to go about calculating hit percentage chance for ...
[2 replies] Last: Perfect, thank you, I was making it way more complicated than it neede... (by Ch1156)
What is the purpose of template <typename T> in this example?
 
I am reviewing a selection sort algorithm written in C++ and above the functions `template <typename...
[2 replies] Last: Thanks Niccolo! (by cppnewbie10110)
loop a output for certain amout of times
 
I'm trying to make the code in a way so that the output "its a Yes or no question" will come out lik...
[7 replies] Last: Hello newbieguy105, After some testing I had to change the contents o... (by Handy Andy)
by FORK1
ACCESS attributes to fill MULTIMAP
 
Write your question here. struct source{ string AA BB CC; source(std::string p1="MARK",std::str...
[19 replies] Last: no no no how i'm i stupid thank you so much ,it was a pleasure (by FORK1)
by maple
confused about move constructor definition in derived class
 
Hello everyone, I am confused about how to define move constructor in derived class. I do not know i...
[9 replies] Last: Thanks a lot @keskiverto. (by maple)
Question
 
You started 3 separate topics, none of which have an actual question or source code you have written...
[8 replies] Last: The OP was a ridiculous POS so I deleted his account. :-) (by dutch)
no instance of constructor "Persona::Persona " matches the argument list
 
I get this error and i do not know how to fix it: no instance of constructor "Persona::Persona " ma...
[4 replies] Last: Note: Lines 8-18 could use C++ Standard Library http://www.cplusplus.c... (by keskiverto)
c++ and SQL
 
Can anyone point me in the right direction on how to combine the codes of c++ and SQL together. I ha...
[1 reply] : Here is a link to learn SQL: https://www.w3schools.com/sql/ In orde... (by coder777)
comparing an input value with vector won't work, any work around?
 
Is there a workaround with this? vector <int> size1{ 1,2,3,4,5,6,7,8,9 }; std::cin >> input; ...
[4 replies] Last: Hello possum swallower, Glad that makes sense. Either method will ac... (by Handy Andy)
by mirjan
Dice game help
 
Hello im a begginer on c++ and i have an exam today :/ Please can you help me on this exam ? Two...
[12 replies] Last: What changes introduced in C++14 can potentially break a program writt... (by Furry Guy)
Void Functions
 
I have to use void functions for my class. I'm wondering why my output isn't coming out correctly? I...
[7 replies] Last: I got it. Thanks guys! (by Awak3nDreams)
Pages: 123... 15
  Archived months: [jan2021]