VEXcode Pro V5 中第一个项目的基本项目结构

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

非常基本的 V5 Text 程序必须包括以下基本程序结构:

#include "vex.h"
使用命名空间 vex;

vex::brain Brain;
int main() {
	// 代码段放在这里
	返回0;
}

但是:
当 V5 IDE 为您创建项目时,默认情况下它会创建一个名为 robot-config.h 的文件。 该文件已经包含以下内容: brain Brain;

因此,您不应在代码中再次声明“Brain”的另一个实例。 以下所有示例均假定以下模板设置:

范围:本文档将涵盖原始数据类型、如何使用它们的基础知识以及对常见错误的警告.

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: