We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffbf9b3 commit 49d737aCopy full SHA for 49d737a
scripts/extract-code.cpp
@@ -1,7 +1,11 @@
1
// extract-code.cpp : Scan a Markdown file for C++ programs
2
3
-import std.core;
4
-import std.regex;
+#include <string>
+#include <sstream>
5
+#include <regex>
6
+#include <vector>
7
+#include <iostream>
8
+#include <fstream>
9
using namespace std;
10
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";
49
}
50
if (line.substr(0, 8) != "#include") {
51
module << line << '\n';
0 commit comments