Beginners - July 2018 (Page 11)

Resize function help.
 
So I need a resize function that is only called when the insert function checks for and discovers that used == capacity. It should increase the size of the arra...
[1 reply] : Unless you are simply wanting to learn the copy function, I would try ... (by wsme)
Need help with arrays.
 
A default constructor that sets up an initial array of 5 unsigned longs, sets capacity to 5 and used to 0. So, my question is how do I accomplish this. I attemp...
[3 replies] Last: Your post in another thread is correct (by closed account 3UohqMoL)
insert function help.
 
So I need an insert function that receives an unsigned long as a parameter and puts it into the next available spot. Is this right? #include <iostream> c...
[1 reply] : Yes i think it should work now (by closed account 3UohqMoL)
Need hint for this, please!
 
So our assignment is to do this: The following program (see file starBox.txt) is the shell of a program that displays the border of a box of starts of size n ...
[6 replies] Last: I figured it out using my code the way it was, thank you though. (by BGA6444)
Call Function problems?
 
I am new at c++ so I don't know what I'm missing. The program just asks for the pay rate, wage, and hours worked. However it does not print the inputted values ...
[3 replies] Last: Thank you so much for your help! You have no idea how much worry you s... (by BGA6444)
No Strings Attached (1,2)
 
Can anyone help me with this question ? my approach was to find greatest character from the current char and find their difference but it gave me WA.Can anyone...
[33 replies] Last: @pewdiepie I have done with ur code but cant pm u back becoz i excee... (by ghostrideriit)
Calling the right function of a child class
 
I need to call the correct function from an object of a sub-class. Both the super-class and the sub-class have this function but the sub's is different. I am un...
[10 replies] Last: This compiles, and works. #include <iostream> class Character { ... (by Repeater)
GIVE ME GEARS FULL AC I WILL GIVE YOU NMNMX/EQUILBR FULL AC
 
THOSE WHO ARE INTERESTED PM ME.
[12 replies] Last: and everyone please report @cricbuzz....i cant report him as he alread... (by blackmamba)
GEARS
 
guyz please help me out here!! i am doing this problem using dfs. i am passing 4 cases in the first subtask and getting runtime error in the last and i am ge...
[1 reply] : @aman whats your approach to the problem (by blackmamba)
by Yap
printf
 
hey everyone, i just started learning programming and I've given a task to create this output "The given numbers are 4, 5, 9, 20 and 54 The sum of all numbers =...
[2 replies] Last: methinks you want this. #include <stdio.h> int main() { int a = 4;... (by jonnin)
by jism3
pointer question
 
I've been trying to learn c++ lately and its becoming a habit of me to validate pointers using these codes. object* pobject = getobject( objectid ); if (...
[7 replies] Last: consider being able to disable some of the checks in release builds if... (by jonnin)
Ways to share variables between classes
 
Imagine I have a class A and a class B that both depend on the same set of variables. Class A sets the values for the variables and uses them and when it's time...
[2 replies] Last: Just to note, this is also being discussed in the OP's other thread: ... (by MikeyBoy)
by h4ever
Organisation of files
 
May I have a general question? When writing program which will access many data files to search records in them, is it important to organize the data file to hi...
[12 replies] Last: Another case when is it not useful to have big file is when I would ne... (by h4ever)
Inheritance Conundrum
 
So I've got a little bit of a problem with a program I'm working on. I've got two classes: class A and class B. Class A has a header file defined like this: #...
[8 replies] Last: Thank you for the suggestions! (by Crusher21)
Need help with GEARS!!!!
 
it will be 0
[14 replies] Last: hey man why r u providing http links they are not safe. (by hyfun)
Coloring problem in 1D
 
Can you give some more detail on the problem? Preferably post the actual text of the problem you're trying to solve. Some things I don't understand: - what are...
[no replies]
Need help with making a calculator using arrays.
 
I'm learning C++ atm., and I am at arrays right now. I understood the mechanics of it, but I was curious that if I could make something using them, to maybe und...
[4 replies] Last: I ended up with this, I guess it's fair enough, but I could've done be... (by quickyq)
by t009
Overloadig operator on a class
 
Taken from this websites example on classesII. // overloading operators example #include <iostream> using namespace std; class CVector { public: ...
[1 reply] : Cvector::operator+ just means that you want to define operator+ that i... (by Peter87)
need help with .inl and templates
 
I'm practicing using templates and inl files, but VS 2017 is giving me errors, what I would like is to print out the number 23 on the main file using functio...
[2 replies] Last: very good,thank you (by programmy)
by diles
Help passing string GetFileName(string prompt)
 
I am needing help being able to pass the fileName variable value from function to function. From Main(); I can call function GetFileName(string) and have a file...
[2 replies] Last: ^ main() has a local fileName, GetFileName() function also has its ow... (by icy1)
July 2018 Pages: 1... 910111213... 17
  Archived months: [jun2018] [aug2018]

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