This commit is contained in:
2025-07-08 13:00:36 +09:00
parent fea9a38b1d
commit 6df1dd4949
8 changed files with 29 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ date:
turnin: turnin:
year: 令和7年 year: 令和7年
month: 07月 month: 07月
day: 03 day: 08
school_name: 岐阜工業高等専門学校 school_name: 岐阜工業高等専門学校
department: 電子制御工学科 department: 電子制御工学科
@@ -32,7 +32,7 @@ paper_config:
sections: sections:
- { path: 'section/introduction.tex', newpg: false } - { path: 'section/introduction.tex', newpg: false }
- { path: 'section/syntax.tex', newpg: true } - { path: 'section/syntax.tex', newpg: false }
- { path: 'section/p41.tex', newpg: true } - { path: 'section/p41.tex', newpg: true }
- { path: 'section/p42.tex', newpg: true } - { path: 'section/p42.tex', newpg: true }
- { path: 'section/p43.tex', newpg: true } - { path: 'section/p43.tex', newpg: true }

View File

@@ -5,7 +5,7 @@
\studentid{2024D14} \studentid{2024D14}
\seatingnum{15} \seatingnum{15}
\reportdate{令和7年}{07月}{03日} \reportdate{令和7年}{07月}{03日}
\turnindate{令和7年}{07月}{03} \turnindate{令和7年}{07月}{08}
\schoolname{岐阜工業高等専門学校} \schoolname{岐阜工業高等専門学校}
\department{電子制御工学科} \department{電子制御工学科}
\subject{情報処理I} \subject{情報処理I}
@@ -23,7 +23,6 @@
\input{section/introduction.tex} \input{section/introduction.tex}
\input{section/syntax.tex} \input{section/syntax.tex}
\newpage
\input{section/p41.tex} \input{section/p41.tex}
\newpage \newpage

Binary file not shown.

View File

@@ -1,6 +1,6 @@
\section{課題1} \section{課題1}
教科書の演習41の解答 教科書の演習4-1の解答
\subsection{コードリスティング} \subsection{コードリスティング}

View File

@@ -1,6 +1,6 @@
\section{課題2} \section{課題2}
教科書の演習42の解答 教科書の演習4-2の解答
\subsection{コードリスティング} \subsection{コードリスティング}

View File

@@ -1,6 +1,6 @@
\section{課題3} \section{課題3}
教科書の演習43の解答 教科書の演習4-3の解答
\subsection{コードリスティング} \subsection{コードリスティング}

View File

@@ -1,6 +1,6 @@
\section{課題4} \section{課題4}
教科書の演習44の解答 教科書の演習4-4の解答
\subsection{コードリスティング} \subsection{コードリスティング}

View File

@@ -10,3 +10,25 @@ while (<条件式>) {
文...; 文...;
} }
\end{lstlisting} \end{lstlisting}
\subsection{複合演算子}
C言語ではよく使用される演算子とその演算子を使った処理を手短に記述できるものがある。それらの中にはインクリメント・デクリメントがある。
式の評価後の値に応じて後置演算子、前置演算子と呼ばれる。
後置演算子は変数の後に演算子を置くことで、評価すると演算が適用される直前の値が返ってくる。
前置演算子はその逆で、変数の前に演算子を置き、評価すると演算が適用された後の値が返ってくる。
\begin{lstlisting}[language=C,title={\texttt{後置・前置演算子}}]
int i = 3;
int j = 0;
j = i++; // j = 3, i = 4
j = i--; // j = 4, i = 3
j = ++i; // j = 4, i = 4
j = --i; // j = 3, i = 3
\end{lstlisting}