|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Variable Scope
I know its pretty late asking these questions, but we haven't gotten
to building a competition port dongle yet and I have a nagging question on variable scope within the 3 WPI functions (Initialize, Autonomous, Operator). The kids have been practicing with code laid out like this: main()And they have been assuming that someVariable will retain its value each time it loops. Two questions on this, if they write the same kind of code in either the Autonomous() or OperatorControl() functions: - Will the forever loops break the background competition port monitoring - How do I define a variable that retains its value when Autonomous()Thanks, -Bill Team 2085 |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| camera scope problems | xrabohrok | Programming | 4 | 15-01-2007 20:48 |
| Camera variable scope question | Validius | Programming | 1 | 28-01-2006 09:24 |
| Save a variable | dawonn | Programming | 7 | 23-04-2005 08:30 |
| Interrupt Handlers and Variable Scope | kaszeta | Programming | 2 | 14-02-2004 18:30 |
| variable? | manodrum | Programming | 11 | 01-04-2003 17:20 |