diff options
author | qorg11 <qorg@vxempire.xyz> | 2021-12-19 13:20:27 +0100 |
---|---|---|
committer | qorg11 <qorg@vxempire.xyz> | 2021-12-19 13:20:27 +0100 |
commit | 51c50190342699a4f68024a8fbcf51eeef35e21b (patch) | |
tree | b34aed77b5b6eb0194d4e83174e743d15e498fdb | |
parent | 541a0dac1a9ca11759f8e9ee7d7945f87aa2572f (diff) | |
download | kill9-51c50190342699a4f68024a8fbcf51eeef35e21b.tar.gz kill9-51c50190342699a4f68024a8fbcf51eeef35e21b.tar.bz2 kill9-51c50190342699a4f68024a8fbcf51eeef35e21b.tar.zst |
c++ rocks thing uses pandoc instead of the js thing
-rw-r--r-- | rocks/computers/software/langs/c++.md | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/rocks/computers/software/langs/c++.md b/rocks/computers/software/langs/c++.md index d581088..05561f3 100644 --- a/rocks/computers/software/langs/c++.md +++ b/rocks/computers/software/langs/c++.md @@ -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> # 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 better: -<pre class="prettyprint"> +~~~{.c++ .numberLines} #include <iostream> #include <thread> #include <mutex> @@ -57,7 +56,7 @@ main(void) std::cout << j << std::endl; } -</pre> +~~~ ### 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 pthreads). but C++ does. -<pre class="prettyprint"> +~~~{.c++ .numberLines} #include <iostream> #include <future> @@ -83,7 +82,7 @@ main() std::cout << "The return value of do_stuff is: " << future.get() << std::endl; return 0; } -</pre> +~~~ ## C compatibility |