• C++ Programming for Financial Engineering
    Highly recommended by thousands of MFE students. Covers essential C++ topics with applications to financial engineering. Learn more Join!
    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. Learn more Join!
    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. Learn more Join!

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

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"; }
};
 
Preprocessor macros in C++
 

Attachments

  • Preprocessor.jpg
    Preprocessor.jpg
    197 KB · Views: 26
There was a time when these examples of multiple inheritance were considered good (not by me of course)

 
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.
 
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);
 
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
 
Back
Top