uni

University stuff
git clone git://git.christosmarg.xyz/uni-assignments.git
Log | Files | Refs | README | LICENSE

commit 76710e93644a955933553db585b6a3e34dd3938e
parent 9bb121b5b7ab85ebb159d1725b787cc057a5b574
Author: Christos Margiolis <christos@margiolis.net>
Date:   Thu, 16 Jan 2020 22:03:16 +0200

worked on tex doc

Diffstat:
Massignment-1.5-arrays-pointers-files/documentation/assignment-1.5.pdf | 0
Massignment-1.5-arrays-pointers-files/documentation/assignment-1.5.synctex.gz | 0
Massignment-1.5-arrays-pointers-files/documentation/assignment-1.5.tex | 103+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------
3 files changed, 91 insertions(+), 12 deletions(-)

diff --git a/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.pdf b/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.pdf Binary files differ. diff --git a/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.synctex.gz b/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.synctex.gz Binary files differ. diff --git a/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.tex b/assignment-1.5-arrays-pointers-files/documentation/assignment-1.5.tex @@ -6,10 +6,59 @@ \usepackage{listings} \usepackage{xcolor} - +% Settings + +\definecolor{codered}{rgb}{0,0.6,0} +\definecolor{codegray}{rgb}{0.5,0.5,0.5} +\definecolor{codegreen}{rgb}{0.0,0.66,0.42} +\definecolor{hanblue}{rgb}{0.27,0.42,0.81} +\definecolor{codeorange}{rgb}{1.0,0.55,0.0} + +\lstdefinestyle{mystyle} +{ + commentstyle=\color{codegray}, + otherkeywords= + { + >,<,.,;,-,!,=,~,&,*,+,-, + int8_t, % Add more types + printf, scanf, exit % Add more functions + }, + keywordstyle=\color{hanblue}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codegreen}, + basicstyle=\ttfamily\small, + breakatwhitespace=false, + breaklines=true, + captionpos=b, + keepspaces=true, + numbers=left, + numbersep=5pt, + showspaces=false, + showstringspaces=false, + showtabs=false, + tabsize=4 +} + +% Colors the digits +\lstset{literate= + *{0}{{{\color{red!20!violet}0}}}1 + {1}{{{\color{red!20!violet}1}}}1 + {2}{{{\color{red!20!violet}2}}}1 + {3}{{{\color{red!20!violet}3}}}1 + {4}{{{\color{red!20!violet}4}}}1 + {5}{{{\color{red!20!violet}5}}}1 + {6}{{{\color{red!20!violet}6}}}1 + {7}{{{\color{red!20!violet}7}}}1 + {8}{{{\color{red!20!violet}8}}}1 + {9}{{{\color{red!20!violet}9}}}1 +} +\lstset{style=mystyle} \pagestyle{fancy} \fancyhf{} + +% Document starts here + \rhead{Εργασία 5} \lhead{Πίνακες - Δείκτες - Αρχεία} \rfoot{\thepage} @@ -30,40 +79,66 @@ \section{Δομή προγραμμάτων και οδηγίες εκτέλεσης} \subsection{Εκτέλεση από Linux} - +\begin{lstlisting}[language=bash] +$ cd path-to-program +$ make +$ make run +$ make run ARGS=txt/data.txt #fcombinations ONLY +$ make clean #optional +\end{lstlisting} \section{combinations - συνδυασμοί} \subsection{main.c} - - + \lstinputlisting[language=C]{../combinations/src/main.c} \subsection{combinations.c} + \lstinputlisting[language=C]{../combinations/src/combinations.c} - + \subsection{arrhandler.c} + \lstinputlisting[language=C]{../combinations/src/arrhandler.c} \subsection{combinations.h} + \lstinputlisting[language=C]{../combinations/include/combinations.h} - + \subsection{arrhandler.h} + \lstinputlisting[language=C]{../combinations/include/arrhandler.h} \subsection{Περιγραφή υλοποιήσης} - -\section{minesweeper - ναρκαλιευτής} +\section{fcombinations - συνδυασμοί από αρχείο} \subsection{main.c} + \lstinputlisting[language=C]{../fcombinations/src/main.c} + \subsection{fcombinations.c} + \lstinputlisting[language=C]{../fcombinations/src/fcombinations.c} + \subsection{arrhandler.c} + \lstinputlisting[language=C]{../fcombinations/src/arrhandler.c} - \subsection{combinations.c} + \subsection{fcombinations.h} + \lstinputlisting[language=C]{../fcombinations/include/fcombinations.h} + \subsection{arrhandler.h} + \lstinputlisting[language=C]{../fcombinations/include/arrhandler.h} + \subsection{Περιγραφή υλοποιήσης} - \subsection{combinations.h} + + +\section{minesweeper - ναρκαλιευτής} + + \subsection{main.c} + \lstinputlisting[language=C]{../minesweeper/src/main.c} + \subsection{minesweeper.c} + \lstinputlisting[language=C]{../minesweeper/src/minesweeper.c} + \subsection{minesweeper.h} + \lstinputlisting[language=C]{../minesweeper/include/minesweeper.h} \subsection{Περιγραφή υλοποιήσης} @@ -75,8 +150,12 @@ \section{Εργαλεία} - - + \begin{itemize} + \item Editors: Visual Studio Code, Vim + \item OS: Arch Linux + \item Shell: zsh + \item Συγγραφή: \LaTeX + \end{itemize} \end{document}