summaryrefslogtreecommitdiff
path: root/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb')
-rwxr-xr-xC++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb13
1 files changed, 5 insertions, 8 deletions
diff --git a/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb b/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb
index a7e400b9..8c87053f 100755
--- a/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb
+++ b/C++_Demystified:_A_Self-Teaching_Guide/chapter13.ipynb
@@ -41,17 +41,14 @@
"metadata": {},
"outputs": [
{
- "ename": "NameError",
- "evalue": "name 'fp' is not defined",
- "output_type": "pyerr",
- "traceback": [
- "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m\n\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
- "\u001b[1;32m<ipython-input-1-112e202a5944>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m()\u001b[0m\n\u001b[0;32m 4\u001b[0m \u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 5\u001b[0m \u001b[1;32mtry\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[1;32m----> 6\u001b[1;33m \u001b[1;32mif\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mfp\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m:\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m\u001b[0;32m 7\u001b[0m \u001b[1;32mprint\u001b[0m \u001b[1;34m\"infile = \"\u001b[0m\u001b[1;33m,\u001b[0m \u001b[0mfp\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0;32m 8\u001b[0m \u001b[1;32mprint\u001b[0m \u001b[1;34m\"0\"\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n",
- "\u001b[1;31mNameError\u001b[0m: name 'fp' is not defined"
+ "output_type": "stream",
+ "stream": "stdout",
+ "text": [
+ "1\n"
]
}
],
- "prompt_number": 1
+ "prompt_number": 4
},
{
"cell_type": "heading",