+\usepackage{tabularx}
+\usepackage{cite}
+
+\definecolor{mGreen}{rgb}{0,0.6,0}
+\definecolor{mGray}{rgb}{0.5,0.5,0.5}
+\definecolor{mPurple}{rgb}{0.58,0,0.82}
+\definecolor{bgcolor}{rgb}{0.8,0.8,0.8}
+\definecolor{afblue}{rgb}{0.26, 0.44, 0.56}
+\definecolor{coolblack}{rgb}{0.0, 0.18, 0.39}
+
+\lstdefinestyle{CStyle}{
+ language=C++, % choose the language of the code
+% basicstyle=\footnotesize, % the size of the fonts that are used for the code
+ basicstyle=\tt\color{afblue},
+ breakatwhitespace=false,
+ breaklines=true,
+ backgroundcolor=\color{bgcolor}, % choose the background color. You must add \usepackage{color}
+ showspaces=false, % show spaces adding particular underscores
+ showstringspaces=false, % underline spaces within strings
+ showtabs=false, % show tabs within strings adding particular underscores
+ frame=single, % adds a frame around the code
+ tabsize=2, % sets default tabsize to 2 spaces
+ captionpos=b, % sets the caption-position to bottom
+ breaklines=true, % sets automatic line breaking
+ breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
+ commentstyle=\color{mGreen},
+ keywordstyle=\color{magenta},
+ stringstyle=\color{mPurple},
+ rulesepcolor=\color{gray},
+ rulecolor=\color{black},
+}
+