dengxinyi 7 年之前
父節點
當前提交
8badc47f32
共有 2 個文件被更改,包括 8 次插入0 次删除
  1. 0 0
      c/C++Primer/ch13/chapter13.cpp
  2. 8 0
      c/C++Primer/ch13/compile-run.sh

+ 0 - 0
c/C++Primer/ch13/chapter13.cpp


+ 8 - 0
c/C++Primer/ch13/compile-run.sh

@@ -0,0 +1,8 @@
+if [ x$1 == x ]; then
+    echo "usage \"$0 [cpp file name]\""
+    exit 1
+else
+    filename=$(basename $1 .cpp)
+    clang++ $filename.cpp -std=c++11 -O2 -Wall -o $filename
+    ./$filename
+fi