c++ rocks thing uses pandoc instead of the js thing

This commit is contained in:
qorg11 2021-12-19 13:20:27 +01:00
parent 541a0dac1a
commit 51c5019034
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,3 @@
<script src="/run_prettify.js"></script>
<noscript><p>JavaScript disabled! Congrats! But keep in mind that there won't be syntax highligthing</p></noscript> <noscript><p>JavaScript disabled! Congrats! But keep in mind that there won't be syntax highligthing</p></noscript>
# C++ has good stuff # C++ has good stuff
@ -15,7 +14,7 @@ Let's be honest, no matter how much you love C, you have to recognize
that the pthreads API are garbage. But C++'s threads API is much that the pthreads API are garbage. But C++'s threads API is much
better: better:
<pre class="prettyprint"> ~~~{.c++ .numberLines}
#include &lt;iostream&gt; #include &lt;iostream&gt;
#include &lt;thread&gt; #include &lt;thread&gt;
#include &lt;mutex&gt; #include &lt;mutex&gt;
@ -57,7 +56,7 @@ main(void)
std::cout << j << std::endl; std::cout << j << std::endl;
} }
</pre> ~~~
### Async functions and stuff ### Async functions and stuff
@ -65,7 +64,7 @@ As far as I know, C doesn't have this (well, it does but as state
above you'll have to have a lot of patience to work with above you'll have to have a lot of patience to work with
pthreads). but C++ does. pthreads). but C++ does.
<pre class="prettyprint"> ~~~{.c++ .numberLines}
#include &lt;iostream&gt; #include &lt;iostream&gt;
#include &lt;future&gt; #include &lt;future&gt;
@ -83,7 +82,7 @@ main()
std::cout << "The return value of do_stuff is: " << future.get() << std::endl; std::cout << "The return value of do_stuff is: " << future.get() << std::endl;
return 0; return 0;
} }
</pre> ~~~
## C compatibility ## C compatibility