I am new to latex.

whenever i make a listings segment like the following:

\lstinputlisting[language=C++,title={main.cpp},caption={Code for main.cpp}]{CodeSegments/main.cpp}

the string "Listing #:" gets added to the line in the pdf (# is a counter starting from 1)

so my line above gives me "Listing 1: Code for main.cpp" (then the code)

I would like to remove the "Listing 1:" part.

how do i do that?