Skip to content

Commit 646e43c

Browse files
committed
Update c++
1 parent 616d11f commit 646e43c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

Diff for: C++_Notebook/Learning C++ on the fly.ipynb

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"## Learning C++ on the fly\n",
8+
"\n",
9+
"This will be a resource to check how we can graduate from our low level interpreter like Python to a compiler language like C++. Thanks to many folks such as [here](http://blog.coldflake.com/posts/On-the-fly-C++/) and more coming."
10+
]
11+
},
12+
{
13+
"cell_type": "code",
14+
"execution_count": 5,
15+
"metadata": {},
16+
"outputs": [
17+
{
18+
"name": "stderr",
19+
"output_type": "stream",
20+
"text": [
21+
"input_line_7:3:3: error: use of undeclared identifier 'cout'\n",
22+
" cout << \"hello world forever\" << endl;\n",
23+
" ^\n",
24+
"input_line_7:3:36: error: use of undeclared identifier 'endl'; did you mean 'std::endl'?\n",
25+
" cout << \"hello world forever\" << endl;\n",
26+
" ^~~~\n",
27+
" std::endl\n",
28+
"/Users/tarrysingh/anaconda/envs/cling/bin/../include/c++/v1/ostream:1032:1: note: 'std::endl' declared here\n",
29+
"endl(basic_ostream<_CharT, _Traits>& __os)\n",
30+
"^\n"
31+
]
32+
},
33+
{
34+
"ename": "ename",
35+
"evalue": "evalue",
36+
"output_type": "error",
37+
"traceback": []
38+
}
39+
],
40+
"source": [
41+
"while(true) {\n",
42+
" cout << \"hello world forever\" << endl;\n",
43+
"}"
44+
]
45+
}
46+
],
47+
"metadata": {
48+
"kernelspec": {
49+
"display_name": "C++17",
50+
"language": "",
51+
"name": "cling-cpp17"
52+
},
53+
"language_info": {
54+
"codemirror_mode": "c++",
55+
"file_extension": ".c++",
56+
"mimetype": "text/x-c++src",
57+
"name": "c++"
58+
}
59+
},
60+
"nbformat": 4,
61+
"nbformat_minor": 2
62+
}

0 commit comments

Comments
 (0)