Update to current output, URL.
This commit is contained in:
parent
b6d55f06f7
commit
3354c15777
@ -6,7 +6,7 @@
|
||||
"source": [
|
||||
"# C++ kernel with Cling\n",
|
||||
"\n",
|
||||
"[Cling](https://root.cern.ch/drupal/content/cling) is an interpreter for C++.\n",
|
||||
"[Cling](https://cern.ch/cling) is an interpreter for C++.\n",
|
||||
"\n",
|
||||
"Yup, this is a thing."
|
||||
]
|
||||
@ -19,13 +19,15 @@
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": []
|
||||
"data": {
|
||||
"text/plain": []
|
||||
},
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
".rawInput\n",
|
||||
"class Rectangle {\n",
|
||||
" private:\n",
|
||||
" double w;\n",
|
||||
@ -43,8 +45,7 @@
|
||||
" double perimiter(void) {\n",
|
||||
" return 2 * (w + h);\n",
|
||||
" }\n",
|
||||
"};\n",
|
||||
".rawInput"
|
||||
"};"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -55,16 +56,19 @@
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"(double) 2.000000e+01\r\n"
|
||||
]
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"(double) 20.0000\n"
|
||||
]
|
||||
},
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"Rectangle r = Rectangle(5, 4);\n",
|
||||
"r.area()"
|
||||
"r.area();"
|
||||
]
|
||||
},
|
||||
{
|
||||
@ -75,25 +79,34 @@
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"name": "stderr",
|
||||
"output_type": "stream",
|
||||
"text": []
|
||||
"text": [
|
||||
"\u001b[1minput_line_8:2:4: \u001b[0m\u001b[0;1;31merror: \u001b[0m\u001b[1mno member named 'methodmissing' in 'Rectangle'\u001b[0m\n",
|
||||
" r.methodmissing();\n",
|
||||
"\u001b[0;1;32m ~ ^\n",
|
||||
"\u001b[0m"
|
||||
]
|
||||
},
|
||||
{
|
||||
"ename": "ename",
|
||||
"evalue": "evalue",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[1minput_line_6:2:4: \u001b[0m\u001b[0;1;31merror: \u001b[0m\u001b[1mno member named 'methodmissing' in 'Rectangle'\u001b[0m",
|
||||
" r.methodmissing()",
|
||||
"\u001b[0;1;32m ~ ^",
|
||||
"\u001b[0m"
|
||||
]
|
||||
"traceback": []
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"r.methodmissing()"
|
||||
"r.methodmissing();"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
@ -103,7 +116,7 @@
|
||||
"name": "cling"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": "c++",
|
||||
"codemirror_mode": "text/x-c++src",
|
||||
"file_extension": ".c++",
|
||||
"mimetype": " text/x-c++src",
|
||||
"name": "c++"
|
||||
|
Loading…
x
Reference in New Issue
Block a user