|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#14
|
||||
|
||||
|
Function jump, as in jumping to a function.
For example... (ignore the mix of c++ and the bad syntax, haven't used c-based programming in a bit) void my_fuction(); void my_fuction() { cout << "Doggies run at midnight" << endl; } int main() { cout << "Jumping" << endl; my_function(); return 1; } When the program calls my_function it would make a function jump and go to another place in the code, I believe... exactly as you described. This can be hacked in PBASIC with GOTOs but isn't elegant in the least. So interrupts allow you to employ properly coded functions then... am I correct? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C controller | Rorschach | Kit & Additional Hardware | 1 | 29-10-2003 19:21 |
| serious problem found - robot controller resets when jarred! | KenWittlief | Electrical | 23 | 19-03-2003 13:30 |
| Visibility of Robot Controller and Reset Button | Tracy | Rules/Strategy | 1 | 17-02-2003 07:36 |
| How do you connect the speed controller fans? | Iain | Electrical | 7 | 31-01-2003 07:05 |
| visibility of robot controller? | davidzhang | Rules/Strategy | 5 | 26-01-2003 01:11 |