[ Log In ]
Red Through Hole LED (Light emitting diode)

Single Red Through Hole LED (Light Emitting Diode)

$0.34
Qty:
Green through hole LED (light emitting diode)

Single Green Through Hole LED (Light Emitting Diode)

$0.34
Qty:
Yellow through hole LED (light emitting diode)

Single Yellow Through Hole LED (Light Emitting Diode)

$0.34
Qty:
Thumbnail: quad buffer line driver 74HC126E

Quad Buffer Line Driver (Through Hole)

$0.69
Qty:
USB 2.0 Cable 10 Foot Type A Male to Type B Male

USB 2.0 Cable Type A Male to Type B Male - 10 FT

$4.80
Qty:
3 Foot USB Cable Type A to USB Cable Type A

USB Cable Type A Male to USB Type A Male - 3 FT

$2.65
Qty:
Type K Thermocouple Temperature Sensor

Type K Thermocouple - Temperature Sensor

$4.95
Qty:
Tumbnail: 62 oz-in NEMA 17 Stepping motors (also called stepper motor)

NEMA 17 Stepping Motor (62 oz-in 5mm single shaft)

$19.95 Out of Stock
Qty:
Image of the Atmega324p

Atmega324P

$8.50
Qty:

Programming: Making Sure Library is Compiled only Once (#ifndef...#endif)

All libraries (header files .h) that are created for c or c++ programs must have code in them to make sure they are not compiled more than once. The use of #ifndef #define and #endif is used for this. The #ifndef means if not defined. If a define is in the top portion of the library file to demarkate the file by a special name, then an ifndef can be used to make sure the code in that library is omitted if the define was alreay seen by the compiler.
Usage:

#ifndef name
#define name

library code
...

#endif

Comments and Additional Information

Have some code to share? Or additional information? Respond here:

You need to be logged in to save a response on this page. The response must be constructive, helpful, supplimentary or to correct the existing video, code or narrative content.

Description:

Code (optional):