Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9c0a2c3

Browse files
author
hengxin
committed
+josephus.tex
1 parent 4615d82 commit 9c0a2c3

File tree

14 files changed

+413
-0
lines changed

14 files changed

+413
-0
lines changed

‎tutorial/c-io/c-io-handout.pdf‎

200 KB
Binary file not shown.

‎tutorial/c-io/c-io.pdf‎

76 Bytes
Binary file not shown.

‎tutorial/c-io/figs/io.zip‎

928 KB
Binary file not shown.
84.6 KB
Loading[フレーム]

‎tutorial/josephus/figs/josephus.jpg‎

119 KB
Loading[フレーム]

‎tutorial/josephus/josephus.pdf‎

235 KB
Binary file not shown.

‎tutorial/josephus/josephus.tex‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
\documentclass[]{beamer}
2+
3+
\input{preamble}
4+
5+
%%%%%%%%%%
6+
\title[\titletext]{\titletext}
7+
\subtitle{The Josephus Puzzle}
8+
9+
\author[Hengfeng Wei]{\large 魏恒峰}
10+
% \titlegraphic{\includegraphics[height = 1.8cm]{figs/20171016-logic-qrcode.png}}
11+
\institute{hfwei@nju.edu.cn}
12+
\date{2017年10月27日}
13+
14+
\AtBeginSection[]{
15+
\begin{frame}[noframenumbering, plain]
16+
\frametitle{\titletext}
17+
\tableofcontents[currentsection, sectionstyle=show/shaded, subsectionstyle=show/show/hide]
18+
\end{frame}
19+
}
20+
%%%%%%%%%%
21+
\begin{document}
22+
23+
\maketitle
24+
25+
\input{parts/josephus-puzzle}
26+
\input{parts/solving-josephus}
27+
\input{parts/function}
28+
\input{parts/control-flow}
29+
\input{parts/array}
30+
31+
\end{document}
32+
%%%%%%%%%%

‎tutorial/josephus/josephus.tex.latexmain‎

Whitespace-only changes.

‎tutorial/josephus/parts/array.tex‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
%%%%%%%%%%%%%%%
2+
\begin{frame}{}
3+
\centerline{\LARGE Arrays}
4+
\end{frame}
5+
%%%%%%%%%%%%%%%
6+
7+
%%%%%%%%%%%%%%%
8+
\begin{frame}[fragile]{Array Declaration and Initialization}
9+
\begin{lstlisting}[style = Cstyle]
10+
int soldiers[5];
11+
12+
int soldiers[] = {1, 2, 3, 4, 5};
13+
14+
int soldiers[5] = {1, 2, 3};
15+
\end{lstlisting}
16+
\end{frame}
17+
%%%%%%%%%%%%%%%
18+
19+
%%%%%%%%%%%%%%%
20+
\begin{frame}[fragile]{For Loop over Array}
21+
\begin{lstlisting}[style = Cstyle]
22+
for (int i = 0; i < n; i++) {
23+
arr[i] ...
24+
}
25+
\end{lstlisting}
26+
\end{frame}
27+
%%%%%%%%%%%%%%%
28+
29+
%%%%%%%%%%%%%%%
30+
\begin{frame}{Array as Parameters}
31+
\end{frame}
32+
%%%%%%%%%%%%%%%
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
%%%%%%%%%%%%%%%
2+
\begin{frame}{}
3+
\centerline{\LARGE Control Flow}
4+
\end{frame}
5+
%%%%%%%%%%%%%%%
6+
7+
%%%%%%%%%%%%%%%
8+
\begin{frame}{\texttt{if}}
9+
10+
\end{frame}
11+
%%%%%%%%%%%%%%%
12+
13+
%%%%%%%%%%%%%%%
14+
\begin{frame}[fragile]{\texttt{switch}}
15+
\end{frame}
16+
%%%%%%%%%%%%%%%
17+
18+
%%%%%%%%%%%%%%%
19+
\begin{frame}[fragile]{\texttt{for}}
20+
\end{frame}
21+
%%%%%%%%%%%%%%%
22+
23+
%%%%%%%%%%%%%%%
24+
\begin{frame}[fragile]{\texttt{while}}
25+
\end{frame}
26+
%%%%%%%%%%%%%%%
27+
28+
%%%%%%%%%%%%%%%
29+
\begin{frame}[fragile]{\texttt{do while}}
30+
\end{frame}
31+
%%%%%%%%%%%%%%%
32+
33+
%%%%%%%%%%%%%%%
34+
\begin{frame}[fragile]{\texttt{goto}}
35+
\end{frame}
36+
%%%%%%%%%%%%%%%

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /