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
- Host: GitHub
- URL: https://github.com/solareenlo/42old-cpp_module_00
- Owner: solareenlo
- Created: 2021-11-08T09:52:58.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-12T01:56:02.000Z (over 3 years ago)
- Last Synced: 2024-12-30T09:16:03.206Z (5 months ago)
- Topics: 42, 42born2code, 42cursus, cpp98, reloaded
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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/)