How to add a Component to Character in C++

theComponentClass*  myNewComponent = CreateDefaultSubObject<theComponentClass>(TEXT("name to be shown");