General C++ Programming - November 2015 (Page 21)

by Ocen
Need to get a value out of another function without returning it
 
Can someone explain to me how I can get the totalAmount out of getCustomerTotalAssets to use in the listCustomersWithHoldingsAbove function? I think I need to ...
[2 replies] Last: [quote=Ocen]I think I need to do something with passing by reference, ... (by closed account E0p9LyTq)
can you please tell me what's wrong with this program
 
#include<conio.h> #include<iostream.h> #include<stdio.h> #include<process.h> #include<fstream.h> class product { int pno; char name ; float price...
[1 reply] : After fixing #include's to point to proper headers, there are 89 error... (by ShiftLeft)
I need help with data structure...
 
I need to create a data structure for below: Enter Movie Name: The Wizard of Oz Enter Year: 1939 Rating: PG Ranking (1-5): 4 So far, I created a code...
[1 reply] : string Rating = "PG"; (by ShiftLeft)
Help with structures in a weighted graph
 
I have an assignment where I am given a weighted graph (vertices with lines connecting them, and the lines have a distance (the weight)). My assignment is to f...
[1 reply] : It looks to me like your Graph contains only one vertex. You need a c... (by dhayden)
array of pointer
 
hallow everyone how can I find the average from array that is taken 12 values and how can I find the higher, lower, and equal to the average using array of...
[6 replies] Last: which loop did you mean? The one that computes the average.... (by dhayden)
finding the maximum number
 
when i run this code and enter 5 5 5, why wont this code give the maximum number for the code as shown below #include<iostream> using namespace std; in...
[1 reply] : Please don't double post. ^^ I answered the other one. (by sasauke)
by nwd3
Dot Product
 
Hello I am trying to do an assignment that dot products two vectors while passing the following tests. but it will not pass my tests here is my code for dot p...
[4 replies] Last: thanks I figured it out (by nwd3)
Go to Void(s) from Menu system.
 
Hi! I was hoping if it were possible to go into a void from a do switch menu. I have already got the exiting game option to work, but I need some help on the ot...
[2 replies] Last: Right, the options now fall into the voids and read out the comments. ... (by J Plant)
How to calculate exponents using for loops?
 
Using a for loop, how would you compute the result of an int raised to the power of another int? I'm sure the for loop would need two variables, one for the ...
[11 replies] Last: Thank you for all your help everyone! (by Wulfinite)
Bytes to Hex
 
Hey I've been out of the C++ game for a long time now and trying to get back into it. I'm trying to start of with some basic stuff that can actually be useful t...
[4 replies] Last: Hi, One can use a delimiting char with the ostream iterator, have a l... (by TheIdeasMan)
by cft
Operators << and >>
 
Hello, I realy don't understand these operators << and >> In this example what is the value of offset ? 10 right ? What's the difference with offset++ ...
[2 replies] Last: Ok clear. Manipulate decimals is easier to understand, for me at least... (by cft)
Passing predicate function as a parameter to two functions?
 
Hello, I am having some difficulty with passing a predicate function as a parameter to another function. I receive an error... "Argument type of "bool" is...
[4 replies] Last: Thank you very much!! :) (by binary3926)
Can anyone help me to fix my code for movie netflix project?
 
I am working on the movie netflix project. This is the current code I have so far: #include <iostream> // library that contains basic input output function...
[1 reply] : What is R? You have not declared any variables with that name. The ge... (by Peter87)
SetAtGrow issue in vector and array
 
hi setatgrow in vector is giving issue as i have t orepalce carray to vector i want setatgrow logic in vector: i did like the below: for CArray in mfc:...
[1 reply] : You don't want to resize the vector if the index is smaller than the s... (by Peter87)
PLEASE ASSIST, URGENT ASSIGNMENT!
 
Given information: In physics, there is an equation that determines how far a projectile will travel given the height of the original launch and the initial ...
[2 replies] Last: My apologies. I only wanted some assistance because I was confused to ... (by bebravejules)
How do you create data structure?
 
After gathering more information for movie netflix project, I needed to use the data structure. So, I have re-done my code as below: #include <iostream> /...
[1 reply] : You need a collection of movie titles, not just a single one. For exa... (by dhayden)
Segmentation fault on string return
 
I'm trying to convert a decimal number to a binary number using a recursive function that returns a string. The correct string is stored in to numBin, but a seg...
[5 replies] Last: You're not properly evaluating the logic of the code. The (presumably... (by tricky87)
by asernx
Stuck on project.
 
For my class we have to create a program that can computer numeric grades for a course. The grades are in a file that will be the input file. Input file follows...
[1 reply] : You need to read each line and at least process the scores because you... (by kbw)
I need help with creating linked list of node function
 
Hello, I am making a movie list which need to use pPreviousNode and pNextNode. (Linked list of nodes) When I click option 1, it would give me 'The movie queue...
[2 replies] Last: Yes, That was it. Linked list of nodes (by hsb910126)
How do you create movie queue?
 
Hello guys, I am working on a movie netflix project. I have gone this far at the moment: #include <iostream> using namespace std; int main() { in...
[1 reply] : Why have you created a new thread about this? http://www.cplusplus.com... (by kbw)
November 2015 Pages: 1... 1920212223... 26
  Archived months: [oct2015] [dec2015]

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