初识Raptor工具:设计和执行一个简单示例

本文介绍如何使用Raptor软件构建和执行一个简单的流图。通过添加输入、循环、输出和赋值符号,实现一个计数递减的流程。从创建输入节点开始,设置提示并定义变量Count,然后加入循环结构进行条件判断,最后通过输出符号将结果展示在控制台。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

认识窗口

窗口划分为工具菜单栏、符号域、工作空间域和观察窗口域

构建和执行一个简单的流图

  1. Start Raptor.
  2. Add a Input symbol to the flowchart by left-clicking once on the Input symbol and then adding it between Start and End. Double click to add the prompt “Enter a number:” and use the variable name Count.
  3. Next, add a Loop structure and edit its expression to
    Count < 0
  4. Add an Output symbol to output the variable Count to the MasterConsole.
  5. Add an Assignment symbol to decrement the value of Count. Edit the statement to
    Count = Count - 1
    在这里插入图片描述
  6. To execute the flowchart, click on .
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值