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
相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息