An open API service indexing awesome lists of open source software.

https://github.com/solareenlo/42old-cpp_module_00

Old-CPP Module 00
https://github.com/solareenlo/42old-cpp_module_00

42 42born2code 42cursus cpp98 reloaded

Last synced: 4 months ago
JSON representation

Old-CPP Module 00

Awesome Lists containing this project

README

        

# 42Old-CPP_Module_00

## ex02
#### Time format
- [strftime](https://www.cplusplus.com/reference/ctime/strftime/)

#### Static member function
> Static member functions have no *this pointer
>
>Static member functions have two interesting quirks worth noting. First, because static member functions are not attached to an object, they have no this pointer! This makes sense when you think about it -- the this pointer always points to the object that the member function is working on. Static member functions do not work on an object, so the this pointer is not needed.
>
>Second, static member functions can directly access other static members (variables or functions), but not non-static members. This is because non-static members must belong to a class object, and static member functions have no class object to work with!

Ref: [12.14 — Static member functions](https://www.learncpp.com/cpp-tutorial/static-member-functions/)