Projects can take help of the following to group functionality:
You have to give nice and meaningful names. Group similar code in same places. Keep code modular. Give proper comments. Avoid keeping dead code.
Google C++ Style Guide
This is the guide line provided by google to work with C++ code. Follow it and improvise.