Beginners - October 2018 (Page 13)

Issue with interator incrementation
 
I'm having some trouble with the ++ operator. I don't think it's working property because I'm to be getting suck in a loop. Here's what I have: Set::Iterato...
[1 reply] : Set::Iterator Set::Iterator::operator++(int) { Set::Iterator... (by JLBorges)
Implementation of subroutine: sum()
 
The sum() prototype is shown below, the problem asks for the implemention of the subroutine which returns the sum of the odd numbers in a list of integers. My ...
[2 replies] Last: Hello ironcastaway, Reading over your post I now see what you are ask... (by Handy Andy)
Classes Problems
 
Hi, can someone help me I'm having a difficult time understanding how to carry out this program The question is Write a class called CelsiusToFahrenheit t...
[3 replies] Last: You're welcome :) (by MikeyBoy)
NEED HELP
 
i need to make a program that relates to fair metrics please help me im newbie in programs Discription: it will find the total amount of fair of the passen...
[7 replies] Last: it is not running in my dev c++ application My point was that you ha... (by MikeyBoy)
Apaxiaans!! katis problem
 
I think my program for Apaxiaans on katis is correct mostly. however it's being returned as wrong. I think this is due to it returning each letter in the comp...
[1 reply] : You are on the right track, but not quite. compactName on line 42 is... (by coder777)
by Satan
Automation with c++?
 
I have been searching this for a while but didn't get good results. You know these "macro programs" that let you say, find a pixel on the screen and click on...
[5 replies] Last: @helios that's great, any suggestions? I found two online autohotkey a... (by Satan)
constructor error
 
Hello im getting an error on line 12 of my main.cpp file but the error I get is no default contructor exists for CustomerData #include <iostream> #includ...
[2 replies] Last: Hi You have an extra semicolon on line 12 :+) In that ctr, you igno... (by TheIdeasMan)
Incrementing 7 Contiguous Items in a List
 
I am working with Lego Mindstorms EV3 robots for my introductory computer science class. I have two arrays: one with 21 names, and another with 21 corresponding...
[1 reply] : Something like this, perhaps: #include <iostream> #include <string> ... (by JLBorges)
Polynomials
 
I have a task to create class of Polynomials. I need to create a constructor in following form: Polynomial::Polynomial(char* poly) Also, I have one condit...
[4 replies] Last: I would use vectors, but I forgot to say that vectors are also forbidd... (by ekv1valent1s)
Not printing input list c
 
I'm not sure why it only prints the last student's information and I need the display to be separate from the user input. So it can print a list of all the user...
[1 reply] : Hi, Each time the for loop on line 17 executes, you overwrite your da... (by TheIdeasMan)
Help with sorting linked list by last name
 
I'm trying to sort my linked list by last name. The program compiles and runs successfully, however, the linked list isn't sorted by last name. The function I n...
[2 replies] Last: Hello mysiarobin1987, PLEASE ALWAYS USE CODE TAGS (the <> formatting ... (by Handy Andy)
few questions on bool
 
Hi, I am following an online course on c++ and I don't think it covers everything. I am writting a speed dating program just to practice with coding. I h...
[3 replies] Last: Thanks, I will look into the details and understand what you did. The ... (by chris442)
Breaking this down for understanding
 
So I have been working at this for awhile and I don't understand the div part. I understand that add sub and mul return 6 21 and -10 but cannot figure out how d...
[2 replies] Last: I finally understand, I was doing this wrong, but getting the right an... (by ironcastaway)
Clone Deep copy
 
I have problem on my assignment, everything seem right, but my polygon don't render as i expected what i get https://i.imgur.com/IkhMgkr.png the result http...
[2 replies] Last: thank that fix my problem as pointer need deep copy (by noobcplusplusprogrammer)
How to make the number change permanent
 
How do I make it so the new value assigned to times is permanent? They all output 0. #include <iostream> using namespace std; int times = 0; void rest...
[2 replies] Last: lastchance is correct - you never actually call your restaurant() fu... (by MikeyBoy)
Sudoku Solver not working SEG FAULT.? (1,2)
 
Hello, I am writing a Sudoku solver and the program does not run and no compiler errors are thrown. All i get is the exe stopped working. The program takes in a...
[20 replies] Last: THANK YOU! And big thank you to everyone that helped.!!! (by CisntEZ)
Hello, I need help with the coding on line 13
 
Hello, I keep getting this error with my cin.ignore. Here is my program. Could you please tell me how to fix my cin.ignore(number-of_romans<streamsize> ::max...
[2 replies] Last: Yes, I am, sorry I am only a beginner. (by Harperstu1)
race condition
 
How do i simulate race condition ? I made 2 functions, func2 and func3. func2 waits for 10 sec and then add one to a value. func3 executes immediately and ...
[3 replies] Last: Pedantic note: You're not simulating a race condition, because one act... (by Ganado)
[1st year University Comp Sci] Struggling with adding fractions in a sequence
 
I'm not sure if I am misunderstanding or not, but I've been tasked with creating a function that adds fractions to the nth term. Though I'm not exactly sure how...
[2 replies] Last: // An arithmetic addition operation that adds one instance of Rationa... (by lastchance)
Need help with Class and User Defined Functions.
 
My program has to contain a class and user defined functions. So far I have this, //Class with private member variables and public member functions. class C...
[8 replies] Last: You have a good thing baking. I'd interpret "validation" differently ... (by keskiverto)
October 2018 Pages: 1... 1112131415... 28
  Archived months: [sep2018] [nov2018]

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