Am I naming identifiers wrong?

Right now, I am used to naming variables and functions with the most descriptive names possible. However, I'll name small or unimportant things starting with a lowercase letter, or in all lowercase, while naming greater or very program-important variables and functions starting with an uppercase letter. Constants will be all uppercase, and the only to use underscores (_)

I learned C++ by self-teaching.

This is an arbitrary program I just came up with to express my preferences:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>

#define KEEP_RUNNING 1

void setcolor(int color){/**/}
bool IsPrime(int Number){/**/}

int main(){

    char input;
    bool IsEven = false;
    setcolor(10);

    while(KEEP_RUNNING){

        cout << "Enter a number: ";
        cin >> input;

        if(input % 2 == 0) IsEven = true;
        else               IsEven = false;

        if(IsEven)         cout << "\n Your number is even. \n";
        if(IsPrime(input)) cout << "\n Your number is prime.\n";
  
        cout << endl;
    }

}


I've heard that this can be very important. The code above is definitely not the best of examples, but it's more or less what I do.
Last edited on
The idea is that your naming convention should make it easier to glance at the code and get an idea of what everything is. It is entirely your preference, unless you are working in a group project. Your naming conventions seem fine to me.

Personally I've not yet nailed down the style I like.
closed account (E0p9LyTq)
Your naming convention is quite good, easy to understand what your variables represent..
Thank you.
Also, I think I accidentally reported a comment here from my phone. Sorry.
Topic archived. No new replies allowed.