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 c...
[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? ...
[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 gene...
[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 ...
[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 diffe...
[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 lo...
[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...
[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 ...
[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, ...
[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 ...
[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 t...
[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...
[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...
[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 n...
[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 re...
[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() { i...
[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 ...
[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 assignme...
[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: ...
[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,...
[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.