From: Alex Ling Date: Sat, 14 Oct 2017 14:37:58 +0000 (+0800) Subject: fix code formatting for including headers (#153) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d67cbacb971b471c490655af3b3ce0ff53a8dfbd;p=nlopt.git fix code formatting for including headers (#153) Fix code formatting for including headers --- diff --git a/doc/docs/NLopt_Tutorial.md b/doc/docs/NLopt_Tutorial.md index faf9d1b..b86e8f9 100644 --- a/doc/docs/NLopt_Tutorial.md +++ b/doc/docs/NLopt_Tutorial.md @@ -32,8 +32,10 @@ Example in C/C++ To implement the above example in C or C++, we would first do: -`#include ` -`#include ` +```c +#include  +#include  +``` to include the NLopt header file as well as the standard math header file (needed for things like the `sqrt` function and the `HUGE_VAL` constant), then we would define our objective function as: