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)
recursion problem
Hello, I am currently learning about recursion, and I am having serious problems understanding this ...
[13 replies] Last: its a stack, not a queue. If you have had data structures or gone ove... (by DonnaPin)
Why the input is incomplete?
My output comes incomplete when I build the program. When I input a name it comes incomplete. Exempl...
[2 replies] Last: Thank you very much, it worked ;) (by ObscurityT)
repeat in a string
So I am writing a code where i want to print out the amount of letters in a string and print it out ...
[6 replies] Last: @jonnin Good call - I was lazy. @OP please get on with making the nece... (by againtry)
by asxxx
Hello. I am start coding a calculator in the console now. It will be need for me later in my GUI app...
[3 replies] Last: And your isNumber function might be better like this: #include <iost... (by againtry)
problem 2 chapter 11 (structures) from jumping into c++
the question says "Create an array of space ship objects and write a program that continually upda...
[14 replies] Last: I dont have an teacher and the book didnt giv me information to move a... (by ahmedddddddd)
by StMick
Map Insertion Issue
For some reason I am unable to add elements to a map in the below program. The map should be fil...
[19 replies] Last: The bottom line - if the key class is complex, unlike my previous, a p... (by againtry)
[10 replies] Last: what I posted compiled and ran for me. It also runs here (edit and r... (by jonnin)
Vectors and Deleting Allocated Memory
This is not for anything in particular, just for curiosity. If I had to allocate memory in a vector ...
[3 replies] Last: also, if you create with new (array), then destroy with delete (... (by ne555)
Map accessing
What is the equivalent cpp code: How to find the previous element and the current element value in t...
[8 replies] Last: Underscore followed by capital letter or 2x consecutive underscores a... (by jlb)
Matrix of letters
Hi there, so we have an int n and then we type in the console n words, they have to be on a new line...
[6 replies] Last: may help.. some programs like this make a fake border around the grid,... (by jonnin)
by jerryd
passing class pointers in a class method
cplusplus forum, I need to pass a pointer to One class in a function of Another class. ex: cla...
[4 replies] Last: #include <iostream> class One { public: int data; One(){data... (by againtry)
by jerryd
Isolate a base class method
cplusplus forum I have several inherited classes from a base class. I added a function to the ba...
[3 replies] Last: Okay good to hear. It just sounded like a big rabbit hole happening at... (by Ganado)
can someone easily show me, how to call an array function with or without using pointer.
can you finish this code? #include <iostream> using namespace std; void array(int num1 , int...
[3 replies] Last: jlb Sorry didn't know, in the future, I will you use. Zapshe Than... (by Learner2016)
passing arrays (character array)
Hello, I am currently learning how to pass pointers and arrays to functions. I am currently going ov...
[3 replies] Last: Do you realize that all three of the following function signatures ar... (by DonnaPin)
by StMick
Undefined Reference Error
Hello, When I compile this code I get an error message stating "undefined reference to Doctor::co...
[6 replies] Last: Thank you to all for the assistance. (by StMick)
by F95
Getting the wrong output after constructing a Red-Black tree from csv file
I'm tasked with opening a csv file, reading from the two columns, and mapping the values (name, numb...
[7 replies] Last: I know my logic in doing this is correct because starting the second ... (by jlb)
my rand() works only if i use a cout
Hi, i'm doing a function to "flip a coin" and every time i try to start the program it works fine o...
[2 replies] Last: Thanks now it works I hadn't really considered the time(0); (by MrNewbie)
by AL88
How can I make the function return to the for loop
Can somebody show me how I can make the function randomNumber quit by pressing the 2 key instead of ...
[2 replies] Last: C++ has bool type built-in. You don't need to use an enum. But anyway... (by Ganado)
Pages: 123... 16
  Archived months: [jun2020]