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
上一篇:多线程基础知识


下一篇:基于物品做推荐系统的方法