General C++ Programming - August 2015 (Page 2)

by aeck
RPN Calculator
 
I am having trouble with my RPN Calculator, I had it figured out with the stack<double> method, but I found out we have to use a linked list. I am having tr...
[13 replies] Last: @ audreyeckman Are you aware of the tutorial and reference sections... (by TheIdeasMan)
Neighbors in directed graph
 
Do predecessors of a vertex count as one of its neighbors? I want to display each vertex's neighbors but I keep getting its predecessor as one of its neighbors,...
[6 replies] Last: Wow I didn't see that, thank you. (by clarkkent)
by ngetu
"expected constructor, destructor, or type conversion before 'cvAcc'"
 
I am getting this error when I try the execute my project. Please have a look and see if you wont notice anything that will help me. thanks, "expected con...
[2 replies] Last: Y ou are missing another endif at the end of the file for the first if... (by Ericool)
how to copy/concatenate 2 c-style strings into one 2-d array?
 
I have an assignment where we need to place two words (separated by a space) into a 2-d array. Since the words are not separated by anything, I thought taking i...
[3 replies] Last: Sorry, I was going to respond to the other thread after this one but I... (by LB)
Reading D19.12 format and converting to double
 
Hello guys, I have a text file with the following type of data: "5.800000000000D+01 2.387500000000D+01 4.843415890576D-09 1.127192966832D+00" How I can...
[2 replies] Last: Thank you! :) (by CiubanSebastian)
What to do after cplusplus tutorials?
 
I've followed the tutorials on this site up until pointers and am now following lazyfoo's tutorials on game programming in SDL (I do plan on finishing the rest ...
[4 replies] Last: Do a pacman with fltk or a snake. Use ogre3d. That should help. (by Ericool)
by leourb
Sorting list<class> elements - Function Object
 
Hi everyone. I am try to sorting a custom class inside a list. I have already overloaded an operator() to sort according another criteria. Now that I have ...
[2 replies] Last: It was for an homework I am doing! Oh ok I thought that in this case ... (by leourb)
problem
 
fixing flip function of my reversi, i need someone to fix my reversi,anyone can help?
[1 reply] : You already have a thread here: http://www.cplusplus.com/forum/general... (by LB)
game
 
my reversi flip function do not work well,anyone can help me?
[5 replies] Last: A drop of light oil never fails on stuck flippers (by closed account 48T7M4Gy)
Finding the frequency of Values Using Arrays
 
I am building a program that allows the user to enter ages of up to one hundred people. The program then should keep track of the amount of each age. My program...
[1 reply] : #include <iostream> // using namespace std; int main () { const ... (by JLBorges)
Why should 64 bit development ever be chosen over 32 bit?
 
Pardon me if this is a silly question, but I want to make sure I'm clear on this subject. 64 bit generally allocates more memory to objects (Where it's 4 bytes...
[5 replies] Last: 32-bit can be faster on 64-but architecture but it is more a question ... (by Ericool)
Reading from file to array issue
 
Hey, so I am working on an assignment and for part of it I need to read from a file and then put them into different array's so I can use them later. My issue i...
[4 replies] Last: why i is out the loop scope ? (by Ericool)
want to return multiple values
 
can anyone help me, I AM A BEGINNER i want to return account number(num_acc) also with number of iteration(i).. and want to use them in parent code for further...
[4 replies] Last: Whe can send more than just an integer, think of object created from s... (by Ericool)
BANK CHEQUE WRITER
 
Write your question here. //write an algorithm for this program and optimize the entire procedural function using c++ constructs //Do not change the cont...
[2 replies] Last: Create a class or a struct called cheque , make a variable called cons... (by Ericool)
About cin.fail()
 
Hello guys, I have a question: how does it works cin.fail() and how it can be used as a condition ? I'd like to control the input from the keyboard. Thanks to ...
[3 replies] Last: [quote=amidaraxar]I'd like to control the input from the keyboard. Con... (by LB)
#include <> not needed in cpp.sh?
 
Hello! I have a somewhat simple problem. In cpp.sh you only thing you need is... #include <iostream> For example... #include <iostream> //should need <...
[2 replies] Last: Thanks, I just was curios. (by FireCoder)
a PROBLEM WITH POINTERS
 
How to solve this run time error? thx.. SOURCE CODE: #include <iostream> #include <string> #include<cstdlib> using namespace std; void Square (int &x,int &...
[5 replies] Last: Thanks guys ... Iappreciate it. (by omer123)
by medoo
error:particleName’ was not declared
 
Dear All I have tried to include the compton scattering in one of the examples in geant4.10.01.p02 but in the run section it gave me this error C1Prim...
[8 replies] Last: my desired data (shown in terminal) but I want them in file There is... (by keskiverto)
by leourb
ifstream - Skip words
 
Hi, I have to import data from a .txt file formatted like this: Name: AAAAA BBBBBB; Address: Road Square Circus; Data: XXXXXXXXX; I have correctly ...
[6 replies] Last: Thank you very much JLBorges! :D I was starting to get crazy! lol (by leourb)
Multiple Inheritance
 
Hello to everyone, I have a question: is it possible that a derived class, inherite the values of the already initialized variables of the base class? If ye...
[8 replies] Last: Perfect, i've tried and it works. You've been really kind and helpful (by amidaraxar)
August 2015 Pages: 1234... 17
  Archived months: [jul2015] [sep2015]

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