I've seen a couple of programs that have a blank #include at the beginning. I would like to know what's the purpose behind this?
Like this:
#include
#include <iostream>
// include more stuff
Example Link: http://mkaczanowski.com/beaglebone-black-cpp-gpio-library-for-beginners/#important_methods
The preprocessor that spits out the formatted HTML code for the link you posted is buggy. Look at the source code on GitHub and you'll see, it should look like this:
#include <iostream>
#include "GPIO/GPIOManager.h"
#include "GPIO/GPIOConst.h"
...
As an FYI, the code you submitted can't compile. It is illegal in C++ to simply have a line that says #include
. The compiler will expect a file to follow so it knows what to include.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With