generated from kenryuS/report-temp
added program and result of cls09
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
\documentclass[xelatex,a4paper,11pt,ja=standard]{bxjsarticle}
|
||||
|
||||
\usepackage{tex/preamble}
|
||||
\usepackage{tex/simple-title}
|
||||
|
||||
\reportauthor{柴田健琉}
|
||||
\reporttitle{情報処理2 - 前期第9回課題}
|
||||
\reportdate{2026年}{06月}{16日}
|
||||
\turnindate{2026年}{06月}{16日}
|
||||
|
||||
\begin{document}
|
||||
\simpletitle
|
||||
|
||||
\section{はじめに}
|
||||
|
||||
この課題のプログラムは以下の環境での動作が確認されている:
|
||||
|
||||
\begin{itemize}
|
||||
\item{OS: NixOS 26.05 Yarara, Linux 7.0.12 x86\_64}
|
||||
\item{CC: GCC 15.2.0}
|
||||
\item{CFLAGS: \texttt{-g -O1 -Wall -Wpedantic}}
|
||||
\item{デバッガ: GNU gdb (GDB) 17.1}
|
||||
\end{itemize}
|
||||
|
||||
\section{課題1 - 演習10-1}
|
||||
|
||||
教科書の演習10-1の\texttt{adjust\_point}関数を作成する.
|
||||
|
||||
\lstinputlisting[language=C,caption={課題1のプログラム}]{./src/cls09/a1.c}
|
||||
|
||||
\newpage
|
||||
|
||||
\subsection{実行結果}
|
||||
|
||||
\begin{figure}[tbh]
|
||||
\centering
|
||||
\includegraphics[width=10cm]{./assets/cls09-a1.png}
|
||||
\caption{課題1の実行結果}
|
||||
\end{figure}
|
||||
|
||||
\section{課題2 - 演習10-2}
|
||||
|
||||
教科書の演習10-2の\texttt{increment\_date}と\texttt{decrement\_date}関数を作成する. なお, 閏年は考慮しないものとする.
|
||||
|
||||
\lstinputlisting[language=C,caption={課題2のプログラム}]{./src/cls09/a2.c}
|
||||
|
||||
\subsection{実行結果}
|
||||
|
||||
\begin{figure}[tbh]
|
||||
\centering
|
||||
\includegraphics[width=10cm]{./assets/cls09-a2.png}
|
||||
\caption{課題2の実行結果}
|
||||
\end{figure}
|
||||
|
||||
\section{課題3 - 演習10-3}
|
||||
|
||||
教科書の演習10-3の\texttt{sort3}関数を作成する.
|
||||
|
||||
\lstinputlisting[language=C,caption={課題3のプログラム}]{./src/cls09/a3.c}
|
||||
|
||||
\subsection{実行結果}
|
||||
|
||||
\begin{figure}[tbh]
|
||||
\centering
|
||||
\includegraphics[width=10cm]{./assets/cls09-a3.png}
|
||||
\caption{課題3の実行結果}
|
||||
\end{figure}
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user