• 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.
    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
Here's a nice feature? I typed it by accident and you know what, the compiler did not complain.

C++:
class C
{
public:
     class C() { std::cout << "eek"; }
};
 

Daniel Duffy

C++ author, trainer
Preprocessor macros in C++
 

Attachments

  • Preprocessor.jpg
    Preprocessor.jpg
    197 KB · Views: 19

Daniel Duffy

C++ author, trainer
Tip:
C++:
template<class InputIt, class UnaryFunction>
UnaryFunction for_each(InputIt first, InputIt last, UnaryFunction f)
{
    for (; first != last; ++first) {
        f(*first);
    }
    return f;
}
Understanding what's really going on in STL algorithms is not always easy .. you want to know what's going on 'underneath' .. a good way to understand is to consult www.cppreference.com, for example std::for_each to see the algo/pseudo code.
 

Daniel Duffy

C++ author, trainer
Solving a known problem for non-English version of Excel

I changed: GetItem("Sheet1") to GetItem(1), in the code line (ExcelDriver.cpp):
Excel::_WorksheetPtr pSheet = pWorkbook->Worksheets->GetItem(1);
 

Daniel Duffy

C++ author, trainer
Question: can someone give me the link to the current version of Visual Studio 2015/2017 Community that is being used in the QN C++ course?

Thanks

Daniel
 
Top