Is there any naming convention for C++ which is widely used and accepted?

Recommended Answers

All 4 Replies

No.

Everyone thinks the one they use is the best. Do something that makes sense. Nobody will complain too much so long as it's sensible.

commented: Of course mine is best. :D +24

Just don't use Hungarian. I use Camel naming convention like so ,

float PlayerLife

I go for a grazing cammel
double playerLifeForce;

I go for a grazing cammel
double playerLifeForce;

I choose the Hungarian grazing Homer Simpson : bool iDuff = true;

commented: How did I not think of this!? +7
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.