Beginners - May 2020 (Page 15)

Jurassic park
 
Hi, so I have class Dinosaur, I have fields for the dino, I have class Cage, I have fields for the cage and I have Dinosaur*fDinos in class Cage. One of the Cag...
[3 replies] Last: So my idea is something like that: we have: cage[particular cage].din... (by closed account 23q2T05o)
Modifiable lvalue Problem
 
Keep getting an error for "answer" variable value must be a modifiable lvalue how do I fix this? #include <iostream> #include <iomanip> using namespace std...
[3 replies] Last: Hello goofie123, salem c was quicker than me. PLEASE ALWAYS USE ... (by Handy Andy)
by sparki
Failed to get correct answer
 
I am working on project euler problem 2, as below. Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 a...
[5 replies] Last: Hello sparki, This is what I came up with before I saw all the commen... (by Handy Andy)
Binary Search Tree
 
Hello, So I have a dynamic string array and I fill it up with words. When I'm done with the insert if the array isn't full the last cells are empty and I'm won...
[9 replies] Last: 1. It is safer to use Standard Library functions for operations, like ... (by keskiverto)
Finding the distinct number of words in a binary tree
 
In my latest assignment, we are tasked with creating a binary tree, sorting a file filled with different words, and looking for the number of distinct words wit...
[14 replies] Last: I got it! :) (by KittyIchigo1)
Beginner and trying to learn.
 
I need help calculating the final grades. Assume we have only 3 students in this class so build a loop into this program. Obtain the student id #, the first tes...
[1 reply] : You should have 7 variables to store the required information. You can... (by TheToaster)
Reading a file and storing information into an array.
 
Okay so here is the literal assignment word for word down below. I have some of the code written but I am a feeling lost/stuck in where to go. I may have forgot...
[1 reply] : You begin just by printing the information in the file. int id; whil... (by salem c)
regex doesn’t like me :(
 
I don’t get regex. :/ I’ve been trying for the past two day straight to just match strings, but so far nothing wants to work. I honestly don’t even know w...
[18 replies] Last: You definitely have a point there lol. (by highwayman)
For Statement not adding new text, but replacing text from earlier.
 
I am trying to make it so the program lists the next employee as a new output table of information, but instead, it is replacing the output table from the first...
[2 replies] Last: Thank you, also that was my first post clearly, thanks for teaching me... (by mattBloom)
Code is not displaying the expected popular value as well as its number of occurence.
 
Write your question here. The program should generate random number between 50 to 99,and store them in a 2D array.Check for the most popular value,display the p...
[7 replies] Last: Hi dhayden,interesting,if i do it this way i wil just have to check in... (by hayabusaruler)
by knicho
For loop from array data
 
I'm having a bit of an issue with a piece of code. The program I'm writing is meant to gather data through user input, calculate estimated payment information, ...
[6 replies] Last: I'm not seeing them in my compiler nor the online compiler. (by knicho)
Configuring the console to mimic a 80x25 Line Display
 
Hello, I'm wondering if the console can be configured to mimic a 80 column by 25 line display. I've attempted some research on this and it looks like I can ...
[2 replies] Last: Thank you!!! Great explanation. (by garywtreible)
even position
 
the original assignment : One of the members of the delegation came forward on behalf of the others and, without any explanation, selected the people who were ...
[11 replies] Last: I can't really see you sitting at the keyboard and entering n=1000 lin... (by lastchance)
by kmce
code recalling if statement for some reason
 
Hi I am having a problem with my account creation system, I added an email confirmation to it, and now when the password is typed wrong first, and then retried ...
[4 replies] Last: Based on the code that you provided the answer is 42. https://www.you... (by Handy Andy)
Having simple issues I don't know how to solve. Help!
 
I've been trying to recreate a simple game of hangman. I came as far as I could without help, but recently I've run into a problem I don't know how to solve. Th...
[1 reply] : Some improvements you could make: Get rid of all this old c style stri... (by Thomas1965)
cant understand the output
 
i want to know why the output is different thank you #include <iostream> int any() { int opp; std::cout << "enter a digit:"; std::cin >> opp...
[5 replies] Last: OP wants main() to print the same output as the function (by Duthomhas)
by mnnsa
gate problem
 
"how to take input in this case to solve this circuit" electrical circuit is in a form of full bin tree. all inputs are provided at the l nodes and every o...
[3 replies] Last: And here's a functional approach, for completeness: // logic_gates.d... (by toad)
by hbcpp
When should I use classes
 
Is there any kind of rules or a guide to when should I create classes? I am doing a school assignment in where I create a basic company workers management syst...
[6 replies] Last: @jonnin thanks for taking the time and sharing this insight. I am thin... (by jonnin)
Base Pointer pointer Derived to access
 
class Base { public: int base_int; }; class Derived : public Base { public: int derived_int; }; Base* basepointer = new Derived();...
[3 replies] Last: #include <iostream> struct Base { virtual void print() { std... (by Repeater)
Find prime numbers?
 
I need your help in this program, this would very important for me. Find the first 10 prime numbers, which the following formula applies: prime + 10 = prime nu...
[2 replies] Last: @ klausskent First, get your own thread. It is really, really friggin... (by Duthomhas)
May 2020 Pages: 1... 1314151617
  Archived months: [apr2020] [jun2020]

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