File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2022 Richard Spencer
3+ Copyright (c) 2019- 2022 Richard Spencer
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 11# learnmoderncpp-tutorial
2- Complete, working programs from the C++ tutorial hosted on learnmoderncpp.com
2+
3+ Complete, working programs from the C++ tutorial hosted at https://learnmoderncpp.com/course-details/
4+
5+ ## Usage
6+
7+ The "headers" directory contains C++ programs with legacy header ` #includes ` ,
8+ whilst the "modules" directory contains the same programs but using the ` import ` keyword instead.
9+
10+ All programs compile successfully with Visual Studio 2019 (v16.8 or later).
11+ The supplied batch scripts "build-vs2019-headers.bat" and
12+ "build-vs2019-modules.bat" can be used to compile all of the programs under
13+ Windows within a Visual Studio command prompt terminal; simply run:
14+ "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars32.bat"
15+ or similar in a command window, or create a desktop link.
16+
17+ To compile individual programs under Linux, use:
18+
19+ ```
20+ g++ -std=c++20 -o prog prog.cpp # (for the headers versions)
21+ ```
22+
23+ or
24+ ```
25+ clang++ -std=c++20 -o prog prog.cpp # (again for the headers versions)
26+ ```
27+
28+ Alternatively, run the supplied shell scripts which are supplied in both the "headers" and "modules" subdirectories.
29+
30+ ** Contact:** cpptutor@outlook.com
31+
You can’t perform that action at this time.
0 commit comments