소스 검색

Escape * in C/C++ supervision 1

Andrea Franceschini 4 년 전
부모
커밋
21d5440644
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      files/ProgC/supervision_1.html

+ 2 - 2
files/ProgC/supervision_1.html

@@ -90,10 +90,10 @@
     <p>Write a program <code>calc</code> which evaluates an expression in Reverse Polish Notation given on the command line; for example</p>
 
     <pre>
-    $ calc 2 3 4 + *
+    $ calc 2 3 4 + \*
     </pre>
 
-    <p>should print 14.</p>
+    <p>should print 14. The character <code>*</code> needs to be escaped with a backslash in some shells or otherwise it gets expanded to all the files in your current directory.</p>
 
     <hr />