View Full Version : Beginners Programming in C++
My team (FRC 1257) uses C++ to program the robot and I'd like to learn it. I've never really written code in anything except basic Python. Are there any good resources you know of to learning C++? Or how did you guys learn?
Any assistance would be amazing!
I've heard good things about Code Academy (http://www.codecademy.com/). Personally, I learned at a summer camp and subsequently took the C++ Intro class in college. You could look into a local community college and see if they offer a summer course or something.
As well, the WPI Library (https://wpilib.screenstepslive.com/s/4485/m/13810) is a good place to start once you have a good handle on the basics of coding and want to know more about FRC specific applications.
rich2202
02-05-2016, 22:26
https://www.edx.org/course/introduction-c-microsoft-dev210x-1
connor.worley
02-05-2016, 22:58
learncpp.com has super comprehensive tutorials. Heavy on the text, but if you bear with it you'll learn a lot.
jmullins16
03-05-2016, 00:23
As a new C++ programmer, I encourage you to look at RobotBuilder and the Command-based robot template provided in the FRC tools. RobotBuilder is a graphical interface that will provide a set of C++ template files that are easy to work in. Even with only basic C++ skills, you can get a drivetrain defined and implemented very quickly. It will let you focus on how to make your robot work using C++ since it sets up all the files and syntax for an organized project.
Mitchell C
03-08-2016, 17:40
I've been working on a C++ guide on my team website http://www.bioniczebras.net/c++_guide.shtml
its not completely done but the only thing im still working on is the fancier auton verson. It uses Iterative as opposed to command based like most.
euhlmann
03-08-2016, 18:27
I've found the most important part of learning C++ to be understanding how memory management works (that might just be because I came from a Java background though :) )
Once you have a somewhat firm grasp on C++, I highly recommend writing a basic robot program from scratch. Run it on a test bot if your team has one, or use the WPILib simulator.
Or you could always switch to RobotPy ;)
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.