• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering.
    Python for Finance with Intro to Data Science
    Gain practical understanding of Python to read, understand, and write professional Python code for your first day on the job. Coming soon.
    An Intuition-Based Options Primer for FE
    Ideal for entry level positions interviews and graduate studies, specializing in options trading arbitrage and options valuation models.

Compile Errors != Linker Errors, BTW why do I get Linker errors?

Daniel Duffy

C++ author, trainer
It is good discipline to design the class in .hpp with all function prototypes and when complete copy it to .cpp so that you have no mismatch.
Plan B: 1 member function at a time
1. create mf in .hpp
2. body of mf in .cpp
3. Test mf in main()
4. GOTO 1
 

Daniel Duffy

C++ author, trainer
No as in we are not going to do it? or No as in we are not doing it now but looking into it?

Good question.

If there is enough demand, for sure. But outside the context of the QN C++ course which is large as it is.

If you have suggestions I am all ears:)
 

Daniel Duffy

C++ author, trainer
People can spend a lot of time debuggimg while if you take the time to do code inspection you can see the error at a glance.


template
<typename T> // Array declared as template type T

Array<T>::Array(
const Array<T>& source)

{
// Copy Costructor

size = source.size;
for (int i=0;i<size;i++)

m_data = source.m_data;
}
 
Last edited:
Top