From the code you posted, the IOs used are 10 and 11 (Arduino footprint IOs). If you want to use those IO in C++ you have to configure the GPIO41 (IO10) and GPIO43 (IO11). The GPIO111 defines the work mode: GPIO or SPI. Please check the following document for additional details about the pin function multiplexing control: Intel® Edison Boards — Intel® Edison Kit for Arduino* Hardware Guide.
I suppose that the message you got when you tried to export the GPIO111 was the following:
-sh: echo: write error: Device or resource busy
That message only indicates that the GPIO has been already exported, so if you try to export it again, you will get that message. You can try to export any GPIO and if you run the command again, that message will appear. This means that you can ignore the message and continue with the next commands because the GPIO is already exported.