Commit 9c7f8e14 authored by Vicente Mataix Ferrándiz's avatar Vicente Mataix Ferrándiz Committed by GILLES Sebastien
Browse files

Adding direct compilation 1

parent 0dd0ff24
......@@ -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": {},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment