shell-G++_compiler

echo "[...] waiting"
read
while true
do
  clear
  if [ -e ./out ]; then
    rm ./out
  fi
  echo "[...] compiling..."
  g++ ./*.cpp -o out
  if [ -e ./out ]; then
    echo "[:)] compile succeed!"
    if [ -e ./testData ]; then
      ./out < ./testData
    else
      ./out
    fi
  else
    echo "[:(] compile failed"
  fi
  echo "[...] waiting..."
  read
done
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息