draft
This commit is contained in:
BIN
assets/p310.png
Normal file
BIN
assets/p310.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 157 KiB |
BIN
assets/p311.png
Normal file
BIN
assets/p311.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 KiB |
@@ -32,4 +32,6 @@ paper_config:
|
||||
|
||||
sections:
|
||||
- { path: 'section/introduction.tex', newpg: true }
|
||||
- { path: 'section/p310.tex', newpg: true }
|
||||
- { path: 'section/p311.tex', newpg: true }
|
||||
|
||||
|
||||
33
main.tex
Normal file
33
main.tex
Normal file
@@ -0,0 +1,33 @@
|
||||
\documentclass{class/nitreport}
|
||||
|
||||
\reporttitle{第9回課題}
|
||||
\reportauthor{柴田 健琉}
|
||||
\studentid{2024D14}
|
||||
\seatingnum{15}
|
||||
\reportdate{令和7年}{05月}{21日}
|
||||
\turnindate{令和7年}{06月}{23日}
|
||||
\schoolname{岐阜工業高等専門学校}
|
||||
\department{電子制御工学科}
|
||||
\subject{情報処理I}
|
||||
\professor{岡崎 憲一}
|
||||
|
||||
\pagenumbering{roman}
|
||||
|
||||
\begin{document}
|
||||
\coverpage
|
||||
|
||||
\tableofcontents
|
||||
\newpage
|
||||
\pagenumbering{arabic}
|
||||
|
||||
\input{section/introduction.tex}
|
||||
\newpage
|
||||
|
||||
\input{section/p310.tex}
|
||||
\newpage
|
||||
|
||||
\input{section/p311.tex}
|
||||
\newpage
|
||||
|
||||
\compiledTime
|
||||
\end{document}
|
||||
BIN
output/main.pdf
Normal file
BIN
output/main.pdf
Normal file
Binary file not shown.
Binary file not shown.
@@ -1,9 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#define NON_EQUAL 0
|
||||
#define ONE_EQUAL 1
|
||||
#define ALL_EQUAL 2
|
||||
|
||||
#ifndef USE_ALT
|
||||
|
||||
int main(void) {
|
||||
@@ -35,6 +31,10 @@ int main(void) {
|
||||
|
||||
#ifdef USE_ALT
|
||||
|
||||
#define NON_EQUAL 0
|
||||
#define ONE_EQUAL 1
|
||||
#define ALL_EQUAL 2
|
||||
|
||||
// alternetive answer
|
||||
int main(void) {
|
||||
int flag = 0; // remember, boolean in C is just integer
|
||||
|
||||
18
section/p310.tex
Normal file
18
section/p310.tex
Normal file
@@ -0,0 +1,18 @@
|
||||
\section{演習 3-10}
|
||||
|
||||
\vspace{-0.25cm}
|
||||
|
||||
3つの整数値の等価検証プログラム。
|
||||
|
||||
\subsection{コードリスティング}
|
||||
|
||||
\vspace{-0.75cm}
|
||||
|
||||
\defaultlistingstyle
|
||||
\lstinputlisting[language=C,title={演習 3-10}]{../programs/p310/main.c}
|
||||
|
||||
\subsection{実行結果}
|
||||
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{./assets/p310.png}
|
||||
\end{center}
|
||||
14
section/p311.tex
Normal file
14
section/p311.tex
Normal file
@@ -0,0 +1,14 @@
|
||||
\section{演習 3-11}
|
||||
|
||||
論理OR演算子を使用して2つの整数値の差が10以下であるか、11以上であるかを検証するプログラム。
|
||||
|
||||
\subsection{コードリスティング}
|
||||
|
||||
\defaultlistingstyle
|
||||
\lstinputlisting[language=C,title={演習 3-11}]{../programs/p311/main.c}
|
||||
|
||||
\subsection{実行結果}
|
||||
|
||||
\begin{center}
|
||||
\includegraphics[width=\textwidth]{./assets/p311.png}
|
||||
\end{center}
|
||||
Reference in New Issue
Block a user