⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listopensectionstrans.tex

📁 国外的数据结构与算法分析用书
💻 TEX
字号:
\begin{program}
\PACKAGE\ Transactions;\\
\\[\emptyline]
\IMPORT\ Sets.DepartmentSet;\\
\IMPORT\ dslib.list.LinkedListUos;\\
\IMPORT\ Entities.*;\\
\\[\emptyline]
\textrm{/**}\>\textrm{List the section for a specific course that have not}\\
\>\textrm{reached their enrollment limit */}\\
\PUBLIC\ \CLASS\ ListOpenSectionsTrans\\
$\{$\\
\>\PUBLIC\ LinkedListUos openSectionsList;\\
\\[\emptyline]
\>\PUBLIC\ \jVOID\ execute(\INT\ deptNum, \INT\ courseNum)\\
\>$\{$\\
\>\>Course course = DepartmentSet.getCourse(deptNum, courseNum);\\
\>\>\IF\ (course != \NULL)\\
\>\>\>openSectionsList = course.openSections();\\
\>\>\ELSE\\
\>\>\>openSectionsList = \NEW\ LinkedListUos();\\
\>$\}$\\
$\}$\\
\end{program}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -