C
C¶
Learn C the hard way
How Pointer in C work
Network sockets in C
Fixing insecure C code
Bit Hacks
Bit Hacks
C++¶
Modern C++ Programming Course (C++11/14/17/20)
Multi-platform C++ network packet sniffing and crafting library.
C++11¶
Smart Pointers¶
unique_ptr: gain ownership of the object and is deleted when the pointer is deleted
- When this pointer is passed to a function if it goes out of scope it will be deleted and will crash the program. You must return the object if you want to continue using it in the future.
shared_ptr: share ownership of the object and is deleted when all of the pointers are deleted
- This is what you need to pass a pointer into a function that acts on it.