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::大腦 大腦; int main() { // 程式碼段放在這裡 return 0; }
但是:
當 V5 IDE 為您建立專案時,它預設會建立一個名為 robots-config.h 的檔案。 該文件已包含以下內容: Brain Brain;
因此,您不應在程式碼中再次聲明“Brain”的另一個實例。 下面的所有範例均假定以下範本設定:
範圍:本文檔將涵蓋基本資料類型、如何使用它們的基礎知識以及對常見錯誤的警告。