Naming functions, methods, pointers, variables, arrays etc in C++
问题 Allright, doing some project with few friends, and I need some standard for naming things in c++. Does anyone have any good naming scheme for c++ that is well thought-out and not made in like 10min. Example, int* house should be named int* house_p, so that when someone reads the code, he doesn't need to scroll all the time wondering if a thing is a pointer, array, matrix, or whatever... Post your well thought-out naming schemes that you are using ! 回答1: Example, int* house should be named int