Thread
:
[Off-Topic] C++ Game
View Single Post
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
11-22-2018 , 11:13 Re: [Off-Topic] C++ Game
#
23
Quote:
Originally Posted by
KliPPy
Among some other minor syntactic differences (don't think of it too much for now, or just search if you are interested), the main one is that the reference
has
to be valid, i.e. can't be
nullptr
. You don't have to think about or check if a pointer is null when using references, making for better code. If you can use a reference, always use it over a pointer; Underneath they are the same thing.
There's hardly ever a need for raw pointers in modern C++. It's usually only used for performance critical code and implementation details.
Thanks for the explanation.
__________________
•
Elite Admin System (Most advanced admin system)
Working on v7.0 (paused until done with studies)
•
Visitor Counter (Track server visitors)
•
Reports System (Keep track of your players suggestions/reports)
edon1337
View Public Profile
Send a private message to edon1337
Find More Posts by edon1337