【伪代码】如何插入word
官网:https://www.overleaf.com/project/678924b61235cebf4cb4ebcb。
·
使用latex
官网:https://www.overleaf.com/project/678924b61235cebf4cb4ebcb
中文的伪代码需要在menu里面选xelatex,不然报错
测试代码:
aurora软件
详细讲解:流程
测试代码
\begin{algorithm}[H]
\caption{algorithm1}
\label{your label}
\begin{algorithmic}[1]
\Require
Enter .....;
\Ensure
Outpur......
\State state1......
\State state2......
\State state3......
\While{(a$>$b)}
\State state4......
\If { c$<$d}
\State state5......
\Else
\State state6......
\EndIf
\State state7......
\EndWhile
\For{aaa}
\State state8......
\EndFor
\end{algorithmic}
\end{algorithm}
里面有很多中文乱码的,只能说换个说法
测试
可以在线网站,两个来回试。
更多推荐
所有评论(0)