Beginners (Page 32)

by medosz
Constructor + member function
I am trying to write a program with 5 data members constructor initalize the first 3 data members. A...
[1 reply] : The problem is that this code does not compile, for many many reasons.... (by Repeater)
Small Problem with a getline statement
I seem to be having a problem on a snippet of code in my program. In this portion of the program ...
[3 replies] Last: I think you'll find this works: #include <iostream> #include <strin... (by Cheddar99)
by Bopaki
Program bombs out after I ever the value for x
The header file & Implementation is exactly as it is the textBook The exercise is only to write the...
[9 replies] Last: Thank you all good people. The introduction of the little 3 character ... (by Bopaki)
Can't seem to understand why my Insert function isn't working correctly.
Hello, I've been trying to recreate a Morse Code Binary Search tree like in this image, https://imgu...
[1 reply] : No C++ necessary, Pipelines is all you need: pipe diskr morse.txt!sor... (by MikeStgt)
Function about Vowel Removal Error
So I was writing a function to remove all the vowels in a string, and I kept getting this error: ...
[2 replies] Last: You are not the first one, see here: (by MikeStgt)
by Halken
Convert from Arabic to Roman Numerals
I am trying to convert Arabic to Roman Numerals (with the intention to later do the opposite using t...
[1 reply] : Look here: I... (by MikeStgt)
Constant Objects
I have a couple fraction objects that are declared as constant and they go through a multiplied func...
[4 replies] Last: That makes sense. That was actually how I was trying to do that in the... (by stoneJax)
Sending terminal output to text file
I have to do an assignment where I make a diamond in C++ with asterisks and output the result to the...
[1 reply] : You need to execute both cout << ... and output << ... within ... (by JLBorges)
Improving my overload constructor's number of arguments
I want to create a game that runs in the command prompt. Not sure if it'll be only text based or wil...
[3 replies] Last: > What's this part of the code do..? It initialises the two members ... (by JLBorges)
Move the indicated code into functions
Im not sure what Im doing wrong. How would I fix my code? Original code // Move the indicated c...
[2 replies] Last: @AbstractionAnon thanks (by dbarclay100)
Creating a code using classes to keep track of a company's day to day business
I am trying to modify the code to keep track of day to day operations of a made up medium sized comp...
[4 replies] Last: Another tutorial on classes and object-oriented programming: https://w... (by Furry Guy)
Help with a function
So I need to write a function that is described like this: std::string capitalize(const std::stri...
[3 replies] Last: Thanks both of you, I was having such a hard time, but I'm good now. (by zzknight)
sum of k adjacent elements in array
Hi to all. This is my first topic. My problem is this: when I run the code posted, the value of ...
[6 replies] Last: I think you need to swap your current lines 18 and 20. What you do wit... (by lastchance)
C++ Polymorphism
Could anyone tell me why is the output for the code below "Derived::foo()" and not "Base::foo()"? Re...
[1 reply] : Here is a runnable version of your code. (Please don't use void main()... (by lastchance)
How do I instantiate a templated doubly linked list with strings?
I'm trying to create a doubly linked list filled with strings. It works with chars and ints but when...
[4 replies] Last: Alright. I removed all NULL comparisons and made them 0. I am runnin... (by aimh4wk)
by wuwy
How to stop program sequence if it reaches its target
Hello. I need help with this exercise, been trying to figure it out for the last 2 hours and this la...
[1 reply] : one way you can stop by adding more conditions to your for loops. eg ... (by jonnin)
Setting one key to 15 different numbers
Hi, I have to create a program with a Bingo board that can cross out numbers as you read them in fr...
[4 replies] Last: This should work with C++11: It does. (by MikeStgt)
Primary Expression Error (Help?)
I keep getting an "expected primary-expression before '.' token" on lines 6 and 12. Does anyone know...
[1 reply] : You wrote Event but meant event on both lines 6 and 12.... (by mbozzi)
Unhandled exception
#include <iostream> #include <string> #include <fstream> using namespace std; struct cmt ...
[8 replies] Last: I've tried to converted the numbers into integers, but all I get was: ... (by thinhphucvang)
Help with methods and pointers GROSSPAY
I am having trouble getting my calcGross Method. I can't get it to multiply a int* by a double* to g...
[7 replies] Last: Thank you for the help it's running now! (by Flynn Rhodes)
Pages: 1... 3031323334
  Archived months: [mar2019]

Cannot post in this page. To post a new message, go to the first page.