2 Star 0 Fork 0

CS-IMIS-23/fwq20172303_Programming

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
AutoCompileX.sh 944 Bytes
一键复制 编辑 原始数据 按行查看 历史
20172303 提交于 2018-03-18 20:31 +08:00 . week2
#!/bin/bash
echo "**********************************************************"
echo "* Author:Blackwall *"
echo "* Date:2018-03-14 00:54 *"
echo "* Mail:wangzq@besti.edu.cn *"
echo "**********************************************************"
echo "Usage:New a folder, copy AutoCompileX.sh into this folder."
echo "execute the command with Bash: sh AutoCompileX.sh "
echo "\n"
if [ ! -d "src" ]; then
mkdir src
fi
if [ ! -d "bin" ]; then
mkdir bin
fi
read -p "Please input a Java program:" name
echo "Start Compiling............................................"
echo "\n"
name2=${name}".java"
mv $name2 src
#echo $name2
javac -d bin src/$name2
echo "Compiled"
echo "\n"
echo "Start Compiling............................................"
echo "\n"
echo "The Results are as follows:\n"
java -cp bin $name
echo "\n Done"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/CS-IMIS-23/fwq20172303_Programming.git
git@gitee.com:CS-IMIS-23/fwq20172303_Programming.git
CS-IMIS-23
fwq20172303_Programming
fwq20172303_Programming
master

搜索帮助