Beginners - April 2021

Ternary Tree construct
I have been suffering for three days trying to figure this out and start my code. Class Methods...
[1 reply] : Do the same as you would for a binary tree, but do the extra test for ... (by lastchance)
formula is not working
Just started coding and it seems like I must have typed the formula wrongly or something because the...
[5 replies] Last: I've learnt that the order is very important and that I've to make sur... (by teacoder)
formula is not working 2
So I seem to have the same problem again with the formula and I have done what the other guy said ju...
[3 replies] Last: So basically my problem was that I used a general formula for the code... (by teacoder)
array and vector - whitespace
Hello, I am doing problems on hackerrank, and had a question that involved putting values into an ar...
[5 replies] Last: To reverse access a vector's elements using iterators: [code firstline... (by Furry Guy)
Press "esc" to stop asking for values
Hi i'm new here. I want to make a c++ program that will ask values that can be stored in an array...
[7 replies] Last: For some reason I was thinking escape emitted 2 characters instead of ... (by jonnin)
Sorting a vector alphabetically
In the function add contacts, I want to add a persons name, phone, and email in my vector my contact...
[5 replies] Last: @dhayden, Out of this: string first = mycontacts .name; // save the... (by Handy Andy)
error E0029 Expected an expression
I keep getting an error message that's saying expected an expression, or error code E0029. I'm new a...
[8 replies] Last: Look at your function call: displaychart(visitors , Visitors) Wha... (by MikeyBoy)
I have a problem initializing an Array
I've declared an array in a class and Visual Studio displays an error saying "Too many initializer v...
[4 replies] Last: [quote=jonnin]as noted your bug is not having a type on it. That dep... (by keskiverto)
by dasdas
problem with rock paper scissors game
I am supposed to make a rock paper scissors game, but using function prototypes such as: ran...
[2 replies] Last: See this post (by seeplus)
For loop does not modify values of vector
Hi! Hope you are having a great day. Is life not beautiful? Anyway... I came across this for loop th...
[4 replies] Last: Alright guys! It was my mistake here... The vector of "Fluege" (or "Fl... (by Mustermann)
Unknown Error
So im trying to write a program that reads the contents of two files into two separate vectors (Girl...
[5 replies] Last: Thank you, all for the help I will be trying every solution. I also ha... (by SweatyCoder)
by sarvcr
Help Autofilling a variable in C++
Hi! I'm learining c++, and for a project I need to work with binary numbers. I already have a funct...
[4 replies] Last: Setfill tool doesn't work as I need the integer to be 8 digits long t... (by helios)
by sam1x1
random function; first ouput way too high
i'm looping a random function to get random numbers from a die. the first number is always way too h...
[3 replies] Last: Using modern C++ (C++11 or later) to generate random numbers: #includ... (by Furry Guy)
Display the product of positive integers using functions.
Hi! I challenged myself to do another task but I was stuck again... I was tasked to find the product...
[2 replies] Last: Wow! Thank you so much! It works perfectly! <3<3 (by gfriend owemji)
Final output is one lower than it should be.
Heya this is the issue that I am solving: Bianca is preparing special dishes for her daughter’s b...
[5 replies] Last: but I don't really understand how it works just yet. Sum of an ari... (by lastchance)
Generate Multiple solutions for sudoku game
Hello! I need to program a recursive method to find all the possible solutions of a Sudoku puzzle of...
[12 replies] Last: Hello! Thank you so much! The error I got was because I did not insert... (by panconcafe)
Problem of reading in a txt file
I'm working on a project and need to read in txt file having format as below: .row 12 .col 12 .blk...
[2 replies] Last: I don't know how you need the required read data, but as a starter per... (by seeplus)
by Sayo
How to Display Vector of Pointers to Abstract Objects
Hi guys, I'm creating an animal board game where various animals are placed on the board. I have a...
[4 replies] Last: but whenever I attempt to display them all the values come up as 0 Ho... (by coder777)
Faster way?
Hello there For my course physical programming I need to simulate building-up of a neighbourhood....
[4 replies] Last: Thanks for the replies! your tips made the code a little faster. I hav... (by MiquelH)
Not in FIle (1,2,3)
I am following along with a tutorial that is creating a bitmap file and writing fractal images to it...
[44 replies] Last: @max Best is to try it! Probably works OK Keep in mind the filename is... (by againtry)
April 2021 Pages: 123... 12
  Archived months: [mar2021]

This is an archived page. To post a new message, go to the current page.