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 4a31483

Browse files
author
hengxin
committed
1-4: +handout version
1 parent e4b7da4 commit 4a31483

File tree

7 files changed

+121
-2
lines changed

7 files changed

+121
-2
lines changed

‎README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ Programming Tutorial for the Problem Solving Class in NJU (Nanjing University)-C
44

55
See the code in [this repository](https://github.com/hengxin/learning-c-cplusplus/tree/master/njucs17-ps-tutorial).
66

7+
![QRcode for this repository](https://github.com/hengxin/njucs-problem-solving-programming-tutorial/blob/master/qrcode-programming-tutorial.png)
8+
79
TODO:
810
- [ ] Overview of this class (separated from Lecture 1)
9-
- [ ] Guessing Game for the illustration of IO
10-
- [ ] Conway's Game of Life for the illustration 2D arrays
11+
- [ ] Guessing Game for IO illustration
12+
- [ ] Conway's Game of Life for 2D arrays illustration (Implementation in [Go](https://golang.org/#))
13+
- [ ] Find a Puzzle on (Binary) Tree
Binary file not shown.
Binary file not shown.
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{--- \subtitletext}
8+
9+
\author[Hengfeng Wei]{\large 魏恒峰}
10+
\titlegraphic{\includegraphics[height = 2.0cm]{figs/qrcode-programming-tutorial.png}}
11+
\institute{hfwei@nju.edu.cn}
12+
\date{2017年11月10日}
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} // bit manipulation
26+
\input{parts/horsing}
27+
\input{parts/string}
28+
29+
\thankyou{}
30+
31+
\end{document}
32+
%%%%%%%%%%

‎tutorial/1-5-c-addendum/1-5-c-addendum.tex.latexmain

Whitespace-only changes.
3.96 KB
Loading[フレーム]

‎tutorial/1-5-c-addendum/preamble.tex

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
% File: preamble.tex
2+
\usepackage{lmodern}
3+
4+
\usepackage{xeCJK}
5+
\usepackage{zhnumber} % counters in Chinese
6+
7+
\usetheme{CambridgeUS} % try Madrid, Pittsburgh
8+
\usecolortheme{beaver}
9+
\usefonttheme[onlymath]{serif} % try "professionalfonts"
10+
11+
\setbeamertemplate{itemize items}[default]
12+
\setbeamertemplate{enumerate items}[default]
13+
14+
\usepackage{amsmath, amsfonts, latexsym, mathtools}
15+
16+
\usepackage{mdframed}
17+
18+
% for tables
19+
\usepackage{adjustbox}
20+
\newcommand{\innercell}[2]{\begin{tabular}{@{}#1@{}}#2\end{tabular}}
21+
22+
\usepackage{hyperref}
23+
\usepackage{verbatim}
24+
\ExplSyntaxOn
25+
\bool_new:N \l__xeCJK_listings_letter_bool
26+
\ExplSyntaxOff
27+
\usepackage{listings}
28+
29+
\definecolor{bgcolor}{rgb}{0.95,0.95,0.92}
30+
31+
\lstdefinestyle{CStyle}{
32+
language = C,
33+
basicstyle = \ttfamily\bfseries,
34+
backgroundcolor = \color{bgcolor},
35+
keywordstyle = \color{blue},
36+
stringstyle = \color{red},
37+
commentstyle = \color{cyan},
38+
breakatwhitespace = false,
39+
breaklines = true,
40+
mathescape = true,
41+
morekeywords = {repeat, until},
42+
showspaces = false,
43+
showstringspaces = false,
44+
showtabs = false,
45+
}
46+
47+
% colors
48+
\newcommand{\red}[1]{\textcolor{red}{#1}}
49+
\newcommand{\green}[1]{\textcolor{green}{#1}}
50+
\newcommand{\blue}[1]{\textcolor{blue}{#1}}
51+
\newcommand{\cyan}[1]{\textcolor{cyan}{#1}}
52+
\newcommand{\purple}[1]{\textcolor{purple}{#1}}
53+
\newcommand{\teal}[1]{\textcolor{teal}{#1}}
54+
55+
% colorded box
56+
\newcommand{\rbox}[1]{\red{\boxed{#1}}}
57+
\newcommand{\gbox}[1]{\green{\boxed{#1}}}
58+
\newcommand{\bbox}[1]{\blue{\boxed{#1}}}
59+
\newcommand{\pbox}[1]{\purple{\boxed{#1}}}
60+
61+
\newcommand{\stylebox}[1]{
62+
\centerline{\pbox{\text{#1}}}
63+
}
64+
65+
\usepackage{pifont}
66+
% \newcommand{\cmark}{\green{\ding{51}}}
67+
% \newcommand{\xmark}{\red{\ding{55}}}
68+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
69+
% for fig without caption: #1: width/size; #2: fig file
70+
\newcommand{\fignocaption}[2]{
71+
\begin{figure}[htp]
72+
\centering
73+
\includegraphics[#1]{#2}
74+
\end{figure}
75+
}
76+
77+
\newcommand{\titletext}{The Josephus Puzzle Revisited}
78+
\newcommand{\subtitletext}{Struct, Linked List, and Function Pointer}
79+
80+
\newcommand{\thankyou}{
81+
\begin{frame}[noframenumbering]{}
82+
\fignocaption{width = 0.50\textwidth}{figs/thankyou.png}
83+
\end{frame}
84+
}

0 commit comments

Comments
(0)

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