IntelliSense: identifier "userexist" is undefined in my Visual Studio c++ project
<p>I have a header file BookStore.header where I created a class Users, with  private atributes: </p>

<pre><code>int id_user;
char* u_name;
char* email;
char password[20];
static unsigned int nr_user;
</code></pre>

<p>getters,setters,constructors,destructor and </p>

<pre><code>    User(const User&amp;);
    User &amp;operator=(const User&amp;);
    friend istream &amp;operator&gt;&gt; (istream &amp;, User&amp;);
    friend ostream &amp;operator&lt;&lt; (ostream &amp;, User);
    bool isLogIn();
    bool userexist(ifstream&amp; , User&amp; );
    int get_users_count(ifstream &amp;);
</code></pre>

<p>Then i created a BookStore.cpp where I included <code>#include"BookStore.h"</code> and implemened all methods,constructors+</p>

<pre><code>bool User::isLogIn(){
    string username, password, file_line;
    cout &lt;&lt; "enter username:";
    cin &gt;&gt; username;
    cout &lt;&lt; "enter pass:";
    cin &gt;&gt; password;
    ifstream infile;
    infile.open("users.txt");
    if (!infile.is_open()){
        cout &lt;&lt; "Error while opening the file...";
    }
    else{
        string str;
        while (getline(infile, str)){

            vector&lt;string&gt; newVector = split(str);
            /*for (string line; getline(infile, line);)
            {*/
            string username_from_file = newVector[1];
            string password_from_file = newVector[3];
            if ((username_from_file.compare(username) == 0) &amp;&amp; (password_from_file.compare(password)) == 0){
                return true;
            }
            /*}*/

        }
    }
    return false;
    /*  if (un == username&amp;&amp; pw == password){
    return true;
    }
    else
    return false;

    }*/
}
bool  userexist(ifstream&amp; file, User&amp; u){

    string str;
    while (getline(file, str)){

        vector&lt;string&gt; newVector = split(str);
        cout &lt;&lt; newVector.size();
        if (newVector.size() &gt; 0){
            string username_from_file = newVector[1];

            if ((username_from_file.compare(u.getName()) == 0)){
                file.close();
                return true;
            }
        }
    }
    file.close();
    return false;
}

int get_users_count(ifstream &amp;file){
    string str;
    int i = 0;
    while (getline(file, str)){
        vector&lt;string&gt; newVector = split(str);
        if (newVector.size() &gt; 0){
            string iduser = newVector[0];
            i++;
        }

    }
    file.close();
    return i;
}
</code></pre>

<p>My problem is in main class in which I include "BookStore.h"</p>

<pre><code>                {
                    cin &gt;&gt; u5;
                    ifstream infile;
                    infile.open("users.txt");
                    if (!userexist(infile, u5)){
                        infile.open("users.txt");
                        int numbers_ids =  get_users_count(infile);
                        u5.set_id(&amp;numbers_ids);
                        outFile &lt;&lt; u5.get_id() &lt;&lt; " " &lt;&lt; u5.getName() &lt;&lt; " " &lt;&lt; u5.getEmail() &lt;&lt; " " &lt;&lt; u5.getPass() &lt;&lt; " " &lt;&lt; endl;
                        //outFile &lt;&lt; u5;
                        cout &lt;&lt; "Registration succesfull!";
                        cout &lt;&lt; endl;
                        outFile.close();
                    }
</code></pre>

<p>When i run this I get 
    <strong>1 IntelliSense: identifier "userexist" is undefined<br>
    2 IntelliSense: identifier "get_users_count" is undefined</strong>  </p>