Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. This is the text before the figures.
  2.  
  3. begin{figure}[H]
  4. begin{center}
  5. lstset{language=C} % Set your language (you can change the language
  6. for each code-block optionally)
  7. begin{lstlisting}[frame=single] % Start your code-block
  8.  
  9. for(int i=0;i++;i<10)
  10.  
  11. end{lstlisting}
  12. caption{The for loop in c++}
  13. label{code_for}
  14. end{center}
  15. end{figure}
  16.  
  17. This is the text after the figures.
  18.  
  19. This is the text before the figures.
  20.  
  21. This is the text after the figures.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement