20 lines
705 B
TeX
20 lines
705 B
TeX
C\# is an object-oriented programming language that was developed by Microsoft
|
|
in 2011. In \cref{fig:csharp} we can see the logo of the programming language.
|
|
|
|
\begin{figure}[H]
|
|
\caption{The logo of C\#}
|
|
\label{fig:csharp}
|
|
\centering
|
|
\includegraphics[width=2cm]{exercises/references/csharp.png}
|
|
\end{figure}
|
|
|
|
\cref{lst:csharphelloworld} shows a program that prints the text \enquote{Hello
|
|
LaTeX friends!} to the console. Like Java, C\# makes use of classes and main
|
|
methods to build executable applications.
|
|
|
|
\begin{listing}[H]
|
|
\caption{A simple C\# program}
|
|
\label{lst:csharphelloworld}
|
|
\inputminted[breaklines,
|
|
linenos=true]{csharp}{exercises/references/HelloLateXFriends.cs}
|
|
\end{listing} |