how to do code listing in Latex without line numbers (when using lstlisting environment) : <p>I have been writing a project report and have added some pseudo codes using the following command : lstlisting in Latex as shown bellow.</p>

<pre><code>         \begin{lstlisting}[language=c++]

             # On leave focus of email field

           IF email is blank
         Error message: "Please enter an email address"

           ELSE IF email field value is not a valid email address
        Error message: "Wrong email please try again"}  

         # On leave focus of password

          IF password is not sufficiently strong
       Error message: "Password strength is not good" 

         \end{lstlisting}
</code></pre>

<p>The above works just fine but in the code block thy are some line numbers appearing and I would like to get ride of those. Any hints on how to remove them?
I also know the following:</p>

<pre><code>     \section*{New section}
</code></pre>

<p>Would give a section title without number. But in the case of code listing it doesn't work and produce an error instead.</p>
