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.

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

Daniel Duffy

C++ author, trainer
There was a time when these examples of multiple inheritance were considered good (not by me of course)

 

Daniel Duffy

C++ author, trainer
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.
 

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