Subject:
|
Re: How to make shared memory....not
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 27 Dec 2001 18:24:54 GMT
|
Viewed:
|
2004 times
|
| |
| |
In lugnet.robotics.rcx.legos, Andy Gombos writes:
> Can't you just link in a library/object file with all of your common
> functions when you link the final source to be downloaded?
Yes, I'm sure I can. And I think it would be 'safer' that way. But Mike's
idea about functions sounds interesting.
I don't really have any idea about how I would use that in a real program,
but it sure sounds interesting.
Steve
|
|
Message is in Reply To:
| | Re: How to make shared memory....not
|
| I think this is what you want, but I am still learning. :) int inc (int&); int dec (int&); int (*pFunc) (int); //pointer to a function that accepts/returns an int if (add) { pFunc = inc; } else { pFunc = dec; } int a = pFunc(10); So, if add is true, (...) (23 years ago, 27-Dec-01, to lugnet.robotics.rcx.legos)
|
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|