C++ noobie programmer working on noobie program
<p>I'm trying to complete the beginner's list of programs for C++ <a href="http://www.cplusplus.com/forum/articles/12974/" rel="nofollow">http://www.cplusplus.com/forum/articles/12974/</a> and am stuck on number 3, "While( user == gullible )" I've literally just started with C++ two weeks ago so thank you in advance for being patient. I would say I have intermediate knowledge in Python, my first language. Anyways, here's what I have so far:</p>

<pre><code>#include &lt;iostream&gt;  
#include "conio.h"  
#include &lt;Windows.h&gt;  

using namespace std;
bool run = 1;

int main(){
    int userInput;
    int counter;
    counter = 0;
    while(run == 1){
        cout &lt;&lt; "Enter any number other than 5 or " &lt;&lt; counter &lt;&lt; endl;
        cin &gt;&gt; userInput;
        if(userInput != 5 || userInput != counter){
            counter ++;
        }
        if(userInput == 5 || userInput == counter){
            cout &lt;&lt; "I told you not to enter 5 or " &lt;&lt; counter &lt;&lt; "!" &lt;&lt; endl;
            Sleep(3000);
            run = 0;
        }

        if(counter == 10){
            cout &lt;&lt; "Ok you win, I'm bored" &lt;&lt; endl;
            Sleep(3000);
            run = 0;

        }

    }





    if(run == 1){
        _getch();
    }
    return 0;



}
</code></pre>

<p>I'm sure there's an easier way to write this program, but if you see flaws in my code don't hesitate to point them out. Thank you.</p>

<p>Also, any recommended reading, tutorials would be more than welcome.</p>
