From 9c7f8e1437da2a63f040bcada238b4745151b3f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vicente=20Mataix=20Ferr=C3=A1ndiz?= <tote1989@gmail.com>
Date: Tue, 4 May 2021 16:33:32 +0200
Subject: [PATCH] Adding direct compilation 1

---
 6-InRealEnvironment/2-FileStructure.ipynb | 33 +++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/6-InRealEnvironment/2-FileStructure.ipynb b/6-InRealEnvironment/2-FileStructure.ipynb
index c367ace..7cf9fe5 100644
--- a/6-InRealEnvironment/2-FileStructure.ipynb
+++ b/6-InRealEnvironment/2-FileStructure.ipynb
@@ -123,6 +123,39 @@
     "Please notice the name of the file with the `main()` function and the name of the executable are completely custom; you have no requirement on the names of files and executable."
    ]
   },
+  {
+   "cell_type": "markdown",
+   "metadata": {},
+   "source": [
+    "If your current machine has the compilers installed it is possible to execute these compilation commands instead of opening the terminal use the ! symbol as follows:"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 11,
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "!g++ -std=c++17 ./2c-Demo/1-HelloWorld/hello.cpp -o hello"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 12,
+   "metadata": {},
+   "outputs": [
+    {
+     "name": "stdout",
+     "output_type": "stream",
+     "text": [
+      "Hello world!\n"
+     ]
+    }
+   ],
+   "source": [
+    "!./hello"
+   ]
+  },
   {
    "cell_type": "markdown",
    "metadata": {},
-- 
GitLab