General C++ Programming (Page 3)

C++ Sequence class error
 
When I try to run the program, I eventually get a message saying "assertion failed" so I figure ther...
[1 reply] : The assert that is triggered is on line 106, inside the advance() func... (by Peter87)
sum of fraction
 
I know to code for the sum of numbers but does anyone have a code to add fractions.
[4 replies] Last: Input a,b,c,d (however you want). (a/b) + (c/d) = (ad+bc)/(bd) Work ... (by lastchance)
Help with family tree program
 
Hi there, I'm still working on the same family tree program, but I'm having trouble with implementin...
[13 replies] Last: You copied the code properly and made some perfectly ok enhancements s... (by CPPAWhile)
Adding Elements at beginning of array
 
I need help! I wanna know how to add new more elements to my existing array. I'm using the vector...
[8 replies] Last: //demonstrates array class with high-level interface Apart from find... (by keskiverto)
by moussa
Function call
 
How to call hh() by overloaded function call operator in the below case? like in normal function ...
[2 replies] Last: Thanks Sergey! (by moussa)
PugiXML Parsing
 
Hey all, I am new to the forums! Anyways, I had a few questions regarding how to properly parse XML ...
[1 reply] : Duplicate of http://www.cplusplus.com/forum/beginner/230654/ . Please... (by MikeyBoy)
Eclipse can't find includes, looking in the wrong place
 
Hi, I want to ask a question about my recent attempt to configure OpenCV with Eclipse. After config...
[5 replies] Last: The problem may be that you are trying to use a relative path. It woul... (by sm2345110)
How to print characters in rows and columns?
 
I need to print out characters in 6 rows and 5 columns, i got this code so far, when i run it it onl...
[1 reply] : you can use http://www.cplusplus.com/reference/iomanip/setw/ or you ca... (by SamuelAdams)
If a given task being performed by a function involves one object, then that function should normally be a ____ function
 
If a given task being performed by a function involves one object, then that function should norma...
[2 replies] Last: I think you're right with Unary! We have no choices, but this sounds c... (by zeblikin)
Program I'm writing
 
Can someone look through this and tell me why amount isn't displaying anything in the "Total" file? ...
[2 replies] Last: I should clarify, it does show something, but only "Total money spent"... (by ComputerG33k)
by Kalcor
Difference between struct* and struct*&
 
Having a linked list for example in the form of a struct. Why do we send the head of the linked list...
[3 replies] Last: in a lot of code, * is sufficient. You only need the & if you plan to... (by jonnin)
Checking tic tac toe winner on a board NxN (1D array)
 
So, previously I made a tic tac toe game with a normal 3x3 board. My teacher assigned us to make a t...
[3 replies] Last: access of a 1-d array as if 2-d is simply array[desired_row*numcols+d... (by jonnin)
Divisibility by 3
 
I'm trying to write a code for an integer n a) n is less than 500 b) n is positive c) n is d...
[5 replies] Last: yeah could work but that will be another code to add individual values... (by briankiprono)
Testing for a character in a string
 
I just had one quick question, is it possible to test for one character in a string? Example of what...
[1 reply] : https://stackoverflow.com/questions/3300743/i-want-to-see-if-a-charact... (by cire)
C++ LOOPING - Lost with homework
 
Create a loop which reads a customer number, customer name, and customer balance from the keyboard a...
[2 replies] Last: it is the first class in C++ programming - everything else has been in... (by brown1z1975)
Tried but nothing coming up. Can you help me with this?
 
55. After following statements have executed, what will be appear on the output window int i=0, a=...
[1 reply] : What did you try? int i=0, a=0; // i==0 and a==0, are they not? wh... (by keskiverto)
by Thelps
Error on last value of last box of a vector<int>.
 
Difficult for me to explain this one. Have a function that parses a text file. Every time the funct...
[6 replies] Last: Ganado got the right lead... :) Turned out I had specified the int th... (by Thelps)
While working only when std::cout is used
 
I have encountered an unusual problem: I have a while(1) loop that will break after a few iterations...
[8 replies] Last: #include <iostream> #include <string> using namespace std; //=======... (by lastchance)
c++ efficiency subject
 
Hi there! This is a subject related to copy constructors and efficiency in C++. The following co...
[14 replies] Last: > do you suggest we should rely on this and simply store the return va... (by JLBorges)
by Cp9
do-while condition problem
 
Hello, I have a problem with the do-while loop. When user press incorrect character I would program ...
[3 replies] Last: The value of showType doesn't change. Exactly. That is the problem. ... (by keskiverto)
Pages: 12345... 18
  Archived months: [dec2017]

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