I am new to C++ but not to programming. Normally, a language has one set of naming conventions that it abides by but with C++ there seems to be no standard on how to write variable and function names. I have seen some people use camel case (i.e. myVariable, myFunction()), some use all lower case (i.e. myvariable, myfunction()), and some use the underscore naming convention (i.e. my_variable, my_function()). Is there one naming convention that most of the C++ community uses or is there a “use whatever convention you want just be consistent with it” mentality?
I am new to C++ but not to programming. Normally, a language has one
Share
While the standard library for most languages has a consistent convention, I know of very few languages that enforce a convention on the programmer.
And no, there is no common C++ naming convention.