Go to Post probably another ingenious game hint planted by Dave months before anyone even thinks about a game hint! - skimoose [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-07-2011, 14:12
grimmcoder's Avatar
grimmcoder grimmcoder is offline
grimmcoder
AKA: Justin Grimm
FRC #2046 (Bear Metal)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2007
Location: Maple Valley
Posts: 10
grimmcoder is an unknown quantity at this point
Starting C++

Hello, My team and I decided we were going to switch from LabView to C++ this year. I am the lead programmer and I do not know C++. I really don't know what to install to be able to. I also need to know where to start, is there a tutorial or article anywhere for "Learning to program robots in C++"? Please Help
Reply With Quote
  #2   Spotlight this post!  
Unread 08-07-2011, 14:40
Techhexium Techhexium is offline
Registered User
FTC #3555
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: California
Posts: 122
Techhexium has a spectacular aura aboutTechhexium has a spectacular aura about
Re: Starting C++

Well if you don't know C++ then you should take this time now to learn about the programming language. Once you know about the programming language then you can learn about programming robots in C++.

For learning, the best IDE in my opinion would be Microsoft Visual C++ Express 2010.

For learning resources you can find some eBooks that teach C++ or use Google. PM me if you want an eBook to read about starting in C++.

Reference of the C++ Language Library

Documentation for WPILib

I'm not knowledgeable about C++ but I know Java.

Last edited by Techhexium : 08-07-2011 at 14:43.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-07-2011, 15:03
davidthefat davidthefat is offline
Alumni
AKA: David Yoon
FRC #0589 (Falkons)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: California
Posts: 792
davidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud ofdavidthefat has much to be proud of
Re: Starting C++

http://books.google.com/books?id=2so...&lr=#PPP1 ,M1
http://newdata.box.sk/bx/c/
__________________
Do not say what can or cannot be done, but, instead, say what must be done for the task at hand must be accomplished.
Reply With Quote
  #4   Spotlight this post!  
Unread 08-07-2011, 15:28
grimmcoder's Avatar
grimmcoder grimmcoder is offline
grimmcoder
AKA: Justin Grimm
FRC #2046 (Bear Metal)
Team Role: Programmer
 
Join Date: May 2011
Rookie Year: 2007
Location: Maple Valley
Posts: 10
grimmcoder is an unknown quantity at this point
Re: Starting C++

Okay! I'll do that when I get home, haha. If I was reading someones code, I could figure out what it does. But I don't know how to write in C++ or any commands, haha.
Reply With Quote
  #5   Spotlight this post!  
Unread 08-07-2011, 16:10
codedr codedr is offline
Registered User
FRC #0537
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 2009
Location: Wisconsin
Posts: 71
codedr will become famous soon enoughcodedr will become famous soon enough
Re: Starting C++

Our team uses learncpp.com and cplusplus.com for their tutorials.
Reply With Quote
  #6   Spotlight this post!  
Unread 08-07-2011, 22:26
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Starting C++

I second the use of http://www.learncpp.com/. I used it to learn C++ myself.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #7   Spotlight this post!  
Unread 09-07-2011, 01:05
jalburty jalburty is offline
Joe Alburty
AKA: Joe Alburty
FRC #1763 (Paseo Pirates)
Team Role: Mentor
 
Join Date: Oct 2006
Rookie Year: 2005
Location: Kansas City
Posts: 25
jalburty will become famous soon enoughjalburty will become famous soon enough
Send a message via ICQ to jalburty
Re: Starting C++

If you already know Java you're well on your way. Even if you've only written a 'hello world' Java program you're well on your way. And, since you appear to have knowledge of LabView and already have a working robot you're just steps away from getting your robot to run on C++.
I suggest the following:
1. Locate your Wind River Workbench for FIRST Robotics Competition 2011 DVD and install the Wind River IDE.
2. Make sure you have the latest C++ updates installed. Here is the link to find them at:
http://firstforge.wpi.edu/sf/go/proj...1_0_for_2011_f
3. Once you get Wind River installed I especially recommend watching these two videos:
http://thinktank.wpi.edu/article/137
4. Write your first program using these documents as your guide:
http://firstforge.wpi.edu/sf/docman/..._documentation
5. Keep asking questions.
Reply With Quote
  #8   Spotlight this post!  
Unread 13-07-2011, 13:35
Bongle's Avatar
Bongle Bongle is offline
Registered User
FRC #2702 (REBotics)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2002
Location: Waterloo
Posts: 1,069
Bongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond reputeBongle has a reputation beyond repute
Send a message via MSN to Bongle
Re: Starting C++

Project Euler is a great source of short, self-contained challenges to give you something to code up. I find when starting out programming it can be hard to find goals that are easy enough that they're within your capabilities but challenging enough that you learn something. You can't set out to code Call Of Duty in your first month of learning. PE problems gradually get more difficult as you go.
http://projecteuler.net/index.php?section=problems


Another good thing, if you're into competition, is TopCoder. Sign up for the algorithm competitions and go wild. The high school competitions should be do-able by a beginner (after you learn the basics of C++ somehwere else).http://www.topcoder.com/tc

LearnCPP and CPlusPlus.com are excellent too.

Last edited by Bongle : 13-07-2011 at 13:38.
Reply With Quote
  #9   Spotlight this post!  
Unread 14-07-2011, 17:46
duane's Avatar
duane duane is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2003
Location: Vacaville
Posts: 98
duane is an unknown quantity at this point
Send a message via AIM to duane
Re: Starting C++

I am working with our programmers to learn programming with C++. I am using Programming: Principles and Practice Using C++ as a guide.

I quite like using this book. It teaches good programming techniques with C++ as the programming language. The level is quite good for the students to work alone or in small groups from the book with some guidance from me if they have questions or get stuck.
__________________
Duane Murphy
Mentor - Software
Vanden Vikings FIRST Team 701
http://www.vandenrobotics.com
Reply With Quote
  #10   Spotlight this post!  
Unread 15-07-2011, 10:22
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: Starting C++

Quote:
If you already know Java you're well on your way
Caveat this with "sorta", as in the concepts of loops, logic, etc all work very similarly between Java and C++.

Yet in Java you can't pass by reference, do void pointers, reference a method as a memory location, do shared memory across processes, etc. Some of this makes for nifty-efficient robot code, some of it doesn't. None of it matters for getting started in FRC, however. So long as the code runs the robot, 5-10% efficiency doesn't really matter.

More stuff here for those who think they know Java. I sure learned several new things on that page, and I program both Java & C++ for a living.
__________________

Drive Coach, 1885 (2007-present)
CAD Library Updated 5/1/16 - 2016 Curie/Carver Industrial Design Winner
GitHub
Reply With Quote
  #11   Spotlight this post!  
Unread 11-10-2011, 20:22
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: Starting C++

I have these two great books as .pdf "C++ Without Fear Beginner's Guide" and "c++ programming for dummies" if you want i can send them to you via e-mail, i learnt a lot from them!
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 03: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