Go to Post IRI: it's FIRSTmas in July! - Alan Anderson [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 24-10-2014, 15:36
cnassar cnassar is offline
Registered User
FRC #0691
 
Join Date: Oct 2014
Location: California
Posts: 1
cnassar is an unknown quantity at this point
Best way to learn C++

Looking into programming our team's robot but I need to learn C++. Any suggestions as to the best method to learn it?
Reply With Quote
  #2   Spotlight this post!  
Unread 24-10-2014, 15:57
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: Best way to learn C++

Please coordinate with your team to not post multiple threads on the same topic. That being said, this would be a good place to start.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Reply With Quote
  #3   Spotlight this post!  
Unread 24-10-2014, 19:28
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Re: Best way to learn C++

http://www.learncpp.com/
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK
Reply With Quote
  #4   Spotlight this post!  
Unread 25-10-2014, 02:10
SoftwareBug2.0's Avatar
SoftwareBug2.0 SoftwareBug2.0 is offline
Registered User
AKA: Eric
FRC #1425 (Error Code Xero)
Team Role: Mentor
 
Join Date: Aug 2004
Rookie Year: 2004
Location: Tigard, Oregon
Posts: 486
SoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant futureSoftwareBug2.0 has a brilliant future
Re: Best way to learn C++

Quote:
Originally Posted by Whippet View Post
Please coordinate with your team to not post multiple threads on the same topic. That being said, this would be a good place to start.
I don't recommend this approach. I've worked with students who could fiddle with stuff enough to make things mostly work but didn't really pick up an understanding of programming and couldn't write hello world. It made me very sad. Since you don't have to have a robot ready for competition tomorrow I would recommend learning the language itself before worrying about how to get it on the robot.

Last edited by SoftwareBug2.0 : 25-10-2014 at 02:11. Reason: spelling
Reply With Quote
  #5   Spotlight this post!  
Unread 25-10-2014, 02:26
faust1706's Avatar
faust1706 faust1706 is offline
Registered User
FRC #1706 (Ratchet Rockers)
Team Role: College Student
 
Join Date: Apr 2012
Rookie Year: 2011
Location: St Louis
Posts: 498
faust1706 is infamous around these partsfaust1706 is infamous around these parts
Re: Best way to learn C++

The college I go to outsources a lot of their classes (or maybe it's just the cs department, but still).

Here are the files:

Lecture Slides

Assignments
__________________
"You're a gentleman," they used to say to him. "You shouldn't have gone murdering people with a hatchet; that's no occupation for a gentleman."
Reply With Quote
  #6   Spotlight this post!  
Unread 25-10-2014, 02:30
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,224
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Best way to learn C++

Personally I started programming with Arduino, and it was a small step to C and C++ and Java from there, but you really should only go that route if you think you'll still have tme to learn how to program FRC-specific.
Reply With Quote
  #7   Spotlight this post!  
Unread 25-10-2014, 11:43
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Best way to learn C++

It ends up that I'm teaching many students C++. I am working on a repository of code examples to get everyone started. Everything's open source, so please feel free to use the code.
I haven't pushed yet, but I will today. The repository is at https://github.com/yash101/CodingClub
All the samples are written for Linux, and the binaries only work in Linux. However, you should have no problem compiling most of the code in Windows or Mac (where Mac will compile the code with the same command but will create a different executable).

Last edited by yash101 : 25-10-2014 at 11:46.
Reply With Quote
  #8   Spotlight this post!  
Unread 25-10-2014, 13:26
JesseK's Avatar
JesseK JesseK is offline
Expert Flybot Crasher
FRC #1885 (ILITE)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2005
Location: Reston, VA
Posts: 3,695
JesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond reputeJesseK has a reputation beyond repute
Re: Best way to learn C++

This won't teach you C++ for a robot, but it does have an open problem set in C++. It also takes a novel online approach to teaching - immediate community feedback. I used it & CodeAcademy to take a crash-course in javascript so I could figure out how to fix a complicated bug in someone else's code the night before a demo at work.

It's alot like ChiefDelphi - there are nuggets of wisdom, and best practices - but knowing which information to trust takes some experience.

http://exercism.io/
Reply With Quote
  #9   Spotlight this post!  
Unread 25-10-2014, 14:52
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Best way to learn C++

Quote:
Originally Posted by JesseK View Post
This won't teach you C++ for a robot, but it does have an open problem set in C++. It also takes a novel online approach to teaching - immediate community feedback. I used it & CodeAcademy to take a crash-course in javascript so I could figure out how to fix a complicated bug in someone else's code the night before a demo at work.

It's alot like ChiefDelphi - there are nuggets of wisdom, and best practices - but knowing which information to trust takes some experience.

http://exercism.io/
Building on, I suggest that you begin by learning basic C++. Learn what a literal is. Learn what a function is. Learn what is a pointer is, etc. From there, move onto FRC C++. C++ is quite easy as long as you Pace yourself and don't try to build a rocket before you have built a bicycle!

I did push to my repository. I am still adding examples and hope to have a couple hundred soon! Good luck with C++!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi