InputAction in C++

How can I code a function for an inputAction in C++?? Do I override some function?? Where do I start?