You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,13 @@
4
4
<tr>
5
5
<tdstyle="border:0;padding:010px00;min-width:25%;"><ahref="https://isocpp.org/"rel="external"><imgsrc="docs/images/cpp_logo.png"width="100"alt="ISO C++ project"/></a></td>
6
6
<tdstyle="border:0;padding:0;vertical-align:text-top;">This repository gathers <ahref="https://isocpp.org/"rel="external"title="ISO C++">C++</a> code examples coming from various websites and books.<br/>
7
-
It also includes build scripts (<ahref="https://en.wikibooks.org/wiki/Windows_Batch_Scripting"rel="external">batch files</a>, <ahref="https://makefiletutorial.com/"rel="external">Make scripts</a>) for experimenting with <ahref="https://isocpp.org/"rel="external">ISO C++</a> on a Windows machine.
8
-
</td>
7
+
It also includes build scripts (<ahref="https://en.wikibooks.org/wiki/Windows_Batch_Scripting"rel="external">batch files</a>, <ahref="https://makefiletutorial.com/"rel="external">Make scripts</a>) for experimenting with <ahref="https://isocpp.org/"rel="external">ISO C++</a> on a Windows machine.</td>
9
8
</tr>
10
9
</table>
11
10
12
-
[Ada][ada_examples], [Akka][akka_examples], [COBOL][cobol_examples], [Dart][dart_examples], [Deno][deno_examples], [Docker][docker_examples], [Erlang][erlang_examples], [Flix][flix_examples], [Golang][golang_examples], [GraalVM][graalvm_examples], [Haskell][haskell_examples], [Kafka][kafka_examples], [Kotlin][kotlin_examples], [LLVM][llvm_examples], [Modula-2][m2_examples], [Node.js][nodejs_examples], [Rust][rust_examples], [Scala 3][scala3_examples], [Spark][spark_examples], [Spring][spring_examples], [TruffleSqueak][trufflesqueak_examples] and [WiX Toolset][wix_examples] are other topics we are continuously investigating.
11
+
[Ada][ada_examples], [Akka][akka_examples], [COBOL][cobol_examples], [Dart][dart_examples], [Deno][deno_examples], [Docker][docker_examples], [Erlang][erlang_examples], [Flix][flix_examples], [Golang][golang_examples], [GraalVM][graalvm_examples], [Haskell][haskell_examples], [Kafka][kafka_examples], [Kotlin][kotlin_examples], [LLVM][llvm_examples], [Modula-2][m2_examples], [Node.js][nodejs_examples], [Rust][rust_examples], [Scala 3][scala3_examples], [Spark][spark_examples], [Spring][spring_examples], [TruffleSqueak][trufflesqueak_examples], [WiX Toolset][wix_examples] and [Zig][zig_examples] are other topics we are continuously investigating.
12
+
13
+
> **☛** Read the document <ahref="https://www.geeksforgeeks.org/history-of-c/"rel="external">"History of C++"</a> to get a quick overview of the evolution of C++.
This example consists of source file [`acquireConsume.cpp`](./acquireConsume/src/main/cpp/acquireConsume.cpp) and build script [`build.bat`](./acquireConsume/build.bat) (with options `-bcc`, `-clang`, `-gcc`, `-icx` and `-msvc`).
17
+
This example has the following directory structure :4
Command [`build.bat`](./acquireConsume/build.bat)`run` generates and executes the C++ program `target\acquireConsume.exe` (with options `-bcc`, `-clang`, `-gcc`, `-icx` and `-msvc` to specify a compiler).
<tdstyle="border:0;padding:0;vertical-align:text-top;">Directory <ahref="."><strong><code>examples\</code></strong></a> contains <ahref="https://isocpp.org/"rel="external"title="ISO C++">ISO C++</a> code examples coming from various websites - mostly from the <ahref="https://isocpp.org/"rel="external"title="ISO C++">C++</a> project.<br/>
7
-
It also includes build scripts (<ahref="https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_01.html"rel="external">Bash scripts</a>, <ahref="https://en.wikibooks.org/wiki/Windows_Batch_Scripting"rel="external">batch files</a>, <ahref="https://makefiletutorial.com/"rel="external">Make scripts</a>) for experimenting with <ahref="https://isocpp.org/"rel="external">C++</a> on a Windows machine.
8
-
</td>
7
+
It also includes build scripts (<ahref="https://tldp.org/LDP/Bash-Beginners-Guide/html/sect_02_01.html"rel="external">Bash scripts</a>, <ahref="https://en.wikibooks.org/wiki/Windows_Batch_Scripting"rel="external">batch files</a>, <ahref="https://makefiletutorial.com/"rel="external">Make scripts</a>) for experimenting with <ahref="https://isocpp.org/"rel="external">C++</a> on a Windows machine.</td>
9
8
</tr>
10
9
</table>
11
10
@@ -22,7 +21,24 @@ The code examples presented below can be built/run with the following command li
22
21
23
22
## <spanid="hello">`hello` Example</span>
24
23
25
-
This example consists of one source file [`src\main.cpp`](./hello/src/main.cpp).
24
+
This example has the following directory structure :
Batch file [**`build.bat`**](./hello/build.bat) generates the `hello.exe` executable using one of the options [`-bcc`][bcc_cli], [`-clang`][clang_cli], [`-gcc`][gcc_cli], [`-icx`][icx_cli], <spanstyle="white-space: nowrap;">[`-msvc`][cl_cli]</span> (default) or [`occ`][occ_cli] :
0 commit comments