Skip to content

Commit 774da59

Browse files
committed
Initial commit
1 parent 26978f9 commit 774da59

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Richard Spencer
3+
Copyright (c) 2019-2022 Richard Spencer
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
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+

0 commit comments

Comments
 (0)