Remove “Listing #” caption prefix

I am working on a C++ reference manual for myself and want good looking listing code blocks.

This stack overflow question was very helpful: LaTeX source code listing like in professional books

But for the life of me I can't find anywhere on the internet for information regarding how to remove the "Listing #" part of the listing captions.

Below is a screenshot of what I have

I want to remove the front part of the listing caption but still have a caption because i want to say the filename.

Thanks for the help.

-
Welcome on StackExchange! I've embedded the screenshot for you, which you'll be able to do yourself once you reach 10 reputation (almost there!). –  Jake Feb 16 '11 at 22:56

Use title instead of caption in the optional argument of the lstlisting environment. See p. 32 of the listings documentation for details.

\documentclass{article}

\usepackage{listings}

\begin{document}

\begin{lstlisting}[caption=foo]
#include <iostream>
\end{lstlisting}

\begin{lstlisting}[title=foo]
#include <iostream>
\end{lstlisting}

\end{document}

-