|
1 | 1 | // extract-code.cpp : Scan a Markdown file for C++ programs
|
2 | 2 |
|
3 | | -import std.core; |
4 | | -import std.regex; |
| 3 | +#include <string> |
| 4 | +#include <sstream> |
| 5 | +#include <regex> |
| 6 | +#include <vector> |
| 7 | +#include <iostream> |
| 8 | +#include <fstream> |
5 | 9 | using namespace std;
|
6 | 10 |
|
7 | 11 | int main(const int argc, const char **argv) {
|
@@ -41,7 +45,7 @@ int main(const int argc, const char **argv) {
|
41 | 45 | while (line != "```") {
|
42 | 46 | header << line << '\n';
|
43 | 47 | if (line == "using namespace std;") {
|
44 | | - module << "import std.core;\n"; |
| 48 | + module << "import std;\n"; |
45 | 49 | }
|
46 | 50 | if (line.substr(0, 8) != "#include") {
|
47 | 51 | module << line << '\n';
|
|
0 commit comments