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