Now for the answers to the C/C++ question for approach 4.
pibbuR who aknowledges he may be wrong in things he write.
- The reserved word "nullptr" for the C "NULL" pointer is C++, not C. "NULL" is legal in C++, but "nullptr" is recommended.
- C doesn't use namespaces, specifically, "std::max" is C++, not C
- Passing arguments to a function by reference ("void set_record(info& record, const wchar_t* buffer)", notice the & operator) is C++. References allow a function to change an argument, and may save time. Both C and C++ can use pointers for this, but only C++ have references.
pibbuR who aknowledges he may be wrong in things he write.
Last edited: