Howard Howard - 3 years ago 118
C++ Question

C++ syntax I am not familiar with

I see some C++ syntax I am not familiar with:

fftfilt *mark_filt;
.
.
.
mark_filt = new fftfilt( ... ); // I left out arguments for the constructor.
.
.
.
mark_filt = (fftfilt *)0;
.


I do not understand what (fftfilt *)0 means or does?
Perhaps someone who uses c++ all the time can explain this to me?

Thanks,
Howard

Answer Source

It's an old way to represent NULL, which is generally just a macro defined to be 0. You should instead prefer

mark_filt = nullptr;

although I hope before then since there was a new someone called delete mark_filt

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download