Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is the text before the figures.
- begin{figure}[H]
- begin{center}
- lstset{language=C} % Set your language (you can change the language
- for each code-block optionally)
- begin{lstlisting}[frame=single] % Start your code-block
- for(int i=0;i++;i<10)
- end{lstlisting}
- caption{The for loop in c++}
- label{code_for}
- end{center}
- end{figure}
- This is the text after the figures.
- This is the text before the figures.
- This is the text after the figures.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement