C++ - TAMSFormers5212/TAMSformers-Database GitHub Wiki

C++

Why do we use C++?

Java is by far the most popular language in FRC with Python even recently overtaking C++, so why do we still use it? It boils down to a few minor reasons and one major one.

FRC robots are controlled using a reconfigurable robotics controller called the Roborio. You can think of it like a fancy Arduino, and similarly to an Arduino, the Roborio is limited in terms of its processing power and memory. As a result, it is beneficial to write code that compiles and executes quickly and efficiently. Java, despite being widely used in FRC due to its ease of use and speed to learn, is not a overly efficient language. C++, in contrast, is designed for efficient code execution as a lower level language than Java and has compilers which further optimize code during compilation.

It's also what UNT teaches, so that's basically the main reason.

Learning C++

1771's C++ Crash Course

W3Schools

CPlusPlus

Tutorial's Point

Being super good or knowledgable about C++ isn't entirely nessecary to get started in FRC programming. If you have prior Java experience, especially if in FRC, you can transfer those skills pretty quickly.

You will also learn C++ in class, but this will likely take the first semester to get to a level in which you are comfortable coding projects.


Next:

⚠️ **GitHub.com Fallback** ⚠️