我无法使用 \comment{} 注释插入注释,下面是我的代码:
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{cite}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{algorithmic}
\usepackage{algorithm}
\usepackage{graphicx}
\usepackage{textcomp}
\usepackage{xcolor}
\usepackage{multirow}
\setlength{\textfloatsep}{0.1cm}
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
\begin{document}
\begin{algorithm}
\caption{SurroundednessPattern}
\begin{algorithmic}[1]
\raggedright
\FORALL{methodTrace in methodTraceList}
\comment{this is a comment}
\IF {$!$methodtrace.Method.Callees.isEmpty()
} \STATE methodTrace.Prediction=T
\ENDIF
\ENDFOR
\end{algorithmic}
\label{surroundedness}
\end{algorithm}
\end{document}