|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#2
|
||||
|
||||
|
Re: #define creation
I'm a little confused by your question, but this is how you correctly define a constant in a header and then use it in a C file
my_header.h Code:
#define MY_CONSTANT 1 Code:
#include "my_header.h" int x = MY_CONSTANT; |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TTL port to a serial port on a demo board | ImmortalAres | Programming | 16 | 09-07-2005 23:44 |
| Gyro Calibration | roboticsjenkins | Programming | 11 | 21-02-2005 20:39 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |
| What is wrong with this code???? It won't Compile and I don't know why? Please Help | CrashZero | Programming | 23 | 26-03-2004 09:44 |
| Need help with Variables ? | David Bryan | Programming | 5 | 23-02-2004 07:42 |