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

I don't know why students think Quantlib is needed for this course..o_O
 
Here's a nice feature? I typed it by accident and you know what, the compiler did not complain.

Code:
class C
{
public:
     class C() { std::cout << "eek"; }
};
 
Preprocessor macros in C++
 

Attachments

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

 
Tip:
Code:
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 Bottom