markdown流程图例子

来源:互联网 发布:2.4g网络有源音箱 编辑:程序博客网 时间:2024/04/28 22:35

st=>start: 开始|past:>http://www.google.com[blank]
e=>end: 结束:>http://www.google.com
op1=>operation: 我的输入|past
op2=>operation: 输出|current
sub1=>subroutine: 子程序|invalid
cond=>condition: Yes
or No?|approved:>http://www.baidu.com
c2=>condition: 点子|rejected
io=>inputoutput: 更多|request

st->op1(right)->cond
cond(yes, right)->c2
cond(no)->sub1(left)->op1
c2(yes)->io->e
c2(no)->op2->e

Created with Raphaël 2.1.0http://www.google.com开始http://www.google.com我的输入http://www.baidu.comYes or No?http://www.baidu.com点子更多http://www.google.com结束http://www.google.com输出子程序yesnoyesno

st=>start: 开始
i=>inputoutput: 输入年份n
cond1=>condition: n能否被4整除?
cond2=>condition: n能否被100整除?
cond3=>condition: n能否被400整除?
o1=>inputoutput: 输出非闰年
o2=>inputoutput: 输出非闰年
o3=>inputoutput: 输出闰年
o4=>inputoutput: 输出闰年
e=>end

st->i->cond1
cond1(no)->o1->e
cond1(yes)->cond2
cond2(no)->o3->e
cond2(yes)->cond3
cond3(yes)->o2->e
cond3(no)->o4->e

Created with Raphaël 2.1.0开始输入年份nn能否被4整除?n能否被100整除?n能否被400整除?输出非闰年End输出闰年输出闰年输出非闰年yesnoyesnoyesno

st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op

Created with Raphaël 2.1.0开始我的操作确认?结束yesno

st=>start: 开始
e=>end: 结束
op=>operation: 我的操作
cond=>condition: 确认?

st->op->cond
cond(yes)->e
cond(no)->op

Created with Raphaël 2.1.0开始我的操作确认?结束yesno
0 0
原创粉丝点击