General C++ Programming (Page 2)

Virtual method from derived class is not called
 
Hello all, i am stuck fixing why the base classes virtual method is not called. The variable (ar...
[8 replies] Last: @kigar64551 One could argue that bar() on line 7 is "called via poin... (by Peter87)
Code writing specification when it needs to be broken to the next line
 
How's coding text specification when it needs to be broken to the next line by adding \ i.e. how is ...
[4 replies] Last: heh, they linked the tame clang bug report, but not gcc's https://gcc.... (by Cubbi)
help with stack
 
Hello, I'm trying to create a stack wherein it can accept any data types, but somehow I'm having som...
[3 replies] Last: As one file, consider: #include <iostream> #include <string> templ... (by seeplus)
by t im
About the return value of (b, c)
 
I just want to write the code // a, b, c are all int; a = max(b,c); However, I missed the max, a...
[3 replies] Last: Thanks for your answers. (by t im)
Does reference variable/reference parameter store address?
 
I know that reference is an alias to a variable but i read somewhere online that reference store a...
[4 replies] Last: As mentioned, in the language, references have no size and no address,... (by Cubbi)
why does printing address of c string returns the entire string?
 
why does printing address of c string returns the entire string? let's say I have a char cString ...
[3 replies] Last: Thanks. I edited my code. (by Worldtreeboy)
Help in Stacks
 
Hello. I've been studying stacks and I just want to know on how to modify this code below, wherein, ...
[4 replies] Last: printStackElements() is very inefficient as it first copies the stack ... (by seeplus)
Assigning derived class of new-array failes
 
Hello all, i am currently in the process of implementing a console version of greenfoot. I have a...
[2 replies] Last: Class Entity should have a virtual destructor. Deleting an object... (by JLBorges)
Difficulty with "if statements" homework
 
I'm struggling hard with an exercise in Cengage for my Intro to Programming class. Professor hasn't ...
[5 replies] Last: Post your completed code and we could give some "better ways to code" ... (by George P)
Help with building this game
 
Hi all , I have been trying to make a game where 2 players pick from 4 cards but I am having trouble...
[9 replies] Last: FYI, anyone foolish enough to click on spammer Hison's links deserves ... (by George P)
Help Lease a property ADT
 
Add a Property Lease a Property Retrun a Property Show Property Details Show all Property ...
[6 replies] Last: To get you started: #include <list> #include <queue> struct Property... (by thmm)
by crdo
can't see my data stored in a (VECTOR/STRUCT)
 
my code is bellow. I'm trying to call the data stored in the vector (cout command in the last line) ...
[7 replies] Last: L21. This isn't needed as file streams are closed automatically when t... (by seeplus)
Phone DB app c++ (1,2)
 
Hi All I have developed a phone DB application with user name, address, contact number related in...
[26 replies] Last: is it awful? Its ensured so you can do exactly that, or am I off base... (by thmm)
2D FFT of Eigen matrices using FFTW library
 
I'm trying to use the FFTW library with Eigen. Since Eigen's unsupported module is slower. So, I'm s...
[2 replies] Last: @kigar64551 hey you're so right, I guess writing code at 1 am is not a... (by JamieAl)
by frek
Max product of three elements
 
Hi all, Task, in summary: Find the maximum product of three elements in an array of int type with ...
[8 replies] Last: That's why I assume there must be some math source I can study and le... (by seeplus)
by kbw
What is an undefined reference/unresolved external symbol error and how do I fix it?
 
It depends on where you see it, during compile or link. It means you've used something without decl...
[1 reply] : Usually the error also says where the bad reference comes from. Read ... (by dhayden)
Why Have Functions() in classes? (1,2)
 
Why Have Functions() in classes? As a C only programmer trying to learn C++ I don't understand why f...
[35 replies] Last: That only covers C++11. Better C++11 than either C++98/03 or no stan... (by George P)
Ranges overkill?
 
The latest article from Rainer Grimm ( http://www.modernescpp.com/index.php/ranges-improvements-with...
[5 replies] Last: Here's a talk about std::ranges that shows better use cases. https://w... (by thmm)
by n00b1e
UnorderedMap
 
How would you implement bidirectional iterators for generic UnorederedMap class with: ++, --, < an...
[6 replies] Last: yeah I meant == and != not < sry (by n00b1e)
Matrix Division in Eigen vs MATLAB
 
I am trying to find the equivalent of the opertaor in MATLAB: A = B/C where here A,B, and C are ...
[5 replies] Last: @mbozzi Thanks! This is pretty helpful actually. (by JamieAl)
Pages: 1234
  Archived months: [may2022]

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