coursc/structure/25.tex

22 lines
567 B
TeX
Raw Permalink Normal View History

2014-02-24 17:38:56 +00:00
\begin{frame}[containsverbatim]
\frametitle{\secname}
\framesubtitle{\subsecname~II}
Afin de rendre le code plus lisible, on utilise une technique nommée \textbf{indentation}.
Elle consiste à faire précéder toute instruction d'un block d'un espacement de taille fixe (e.g. 4 espaces ou une tabulation) supplémentaire par rapport au block parent.
\begin{exampleblock}{Code lisible}
\begin{verbatim}
int a=1;
int main() {
if(a) {
faireQqch();
return 0;
}
return 1;
} \end{verbatim}
\end{exampleblock}
\end{frame}