UE4 Note : Get Resource In C++

Firstly, you can right click on the resource you want and select “Copy Reference Path" in UE4 Editor. Than you should got a path like this:
StaticMesh'/Game/Mesh/TestMesh.TestMesh'

After that, just delete the thing that should not include in an URL:
/Game/Mesh/TestMesh.TestMesh

The last thing is using the Object Finder to get the object in C++:
#include "ConstructorHelpers.h"
StaticMesh * Mesh = ConstructorHelpers::FObjectFinder("/Game/Mesh/TestMesh.TestMesh").Object;