How do I create my own blueprint node with C++?

Also look in places in the engine source like

(Your UE4 Install directory)\Engine\Source\Runtime\Engine\Private\KismetSystemLibrary.cpp

for good examples.