|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Hi! My team would like to switch to C++ next year but would like to have a programmer (me) that knows what they are doing before the year starts. I cannot find a good C++ guide or something similar to get me started and I am kind of confused with how the structure is supposed to work. Any good suggestions?
|
|
#2
|
||||
|
||||
|
Re: Command Based Programming
Quote:
http://wpilib.screenstepslive.com/s/3120/m/7913 http://www.usfirst.org/roboticsprogr...twareresources http://www.cplusplus.com/doc/tutorial/ http://www.cprogramming.com/tutorial/c++-tutorial.html http://www.informit.com/store/accele...-9780201703535 http://www.stroustrup.com/Programming/ ... google is your friend. HTH |
|
#3
|
||||
|
||||
|
Re: Command Based Programming
I agree there are lots of good tutorials on getting started with C++. Keith has a very good list and I've been through many of them in getting our team started using C++ two years ago. Some are focused on writing a generic C++ program, Object-Oriented programming, or specifically using C++ with WPILib for an FRC robot (screenstepslive).
I recommend that if you have a robot to test with, stay close to the WPILib/screensteps tutorials which get you going very quickly. And if you want to have an initial set of template headers and source files to see how a project fits together, take a look at RobotBuilder. It will get you a working C++ project that is driving with only a few lines of your own code. It can sometimes be easier learning the language when you see lots of the structure in place for you to modify. If you don't have a robot to learn the language right away, then I would focus on the more generic C++ tutorials that can be run with most C++ compilers. Retention is always better when you have to debug something and make it work. By using RobotBuilder our team spends more time figuring out WPILib calls to add robot functionality than how to use C++ as a language. And that's what I want them to do. |
|
#4
|
||||
|
||||
|
Re: Command Based Programming
I created a new template with a huge amount of comments and examples if you want to check it out:
http://www.chiefdelphi.com/forums/sh...d.php?t=133961 This is based off of how our robot will be set up this year, and should be rather easy to follow. Just make sure you don't miss the Robot::insertobjecthere or most things as it is what causes most errors for my under programmers. -Lord Supreme Programmer for Team 1410 Isaac Last edited by King Nerd III : 06-02-2015 at 11:34. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|