diff --git a/as2/README.md b/as2/README.md index 9575d23..049ed95 100644 --- a/as2/README.md +++ b/as2/README.md @@ -3,8 +3,8 @@ Please execute the compilergcc.bat to compile.
Or you can install gcc manually and use the following command to compile. ```` -$ g++ -O2 -o same_vec same_vec.cpp -$ g++ -O2 -o Fraction_test Fraction_test.cpp Fraction.h +$ g++ -O2 -o ex1 ex1/ex1.cpp +$ g++ -O2 -o ex2 ex2/main.cpp ex2/player.cpp ex2/container.cpp ex2/swordsman.cpp ex2/archer.cpp ex2/mage.cpp ```` ## gcc Download url diff --git a/as2/compilergcc.bat b/as2/compilergcc.bat new file mode 100644 index 0000000..f9f955b --- /dev/null +++ b/as2/compilergcc.bat @@ -0,0 +1,38 @@ +@echo off +where g++>nul +cls +if errorlevel 1 ( +echo gcc NOT FOUND in your computer!! +echo Press any key to start installation! +pause>nul +goto install +) else ( +echo Detected gcc Environment.. +echo Start to compile!! +goto compile +) + + + +:install +cls +echo Please download and run the gcc install program. +ping 127.0.0.1 >nul +start https://yimian-setup.obs.myhwclouds.com/setup/tdm64-gcc-5.1.0-2.exe +ping 127.0.0.1 >nul +cls +echo After install, Please restart this script to compile!!&&pause&&exit + + +:compile +cls +echo compiling... +g++ -O2 -o ex1 ex1/ex1.cpp +g++ -O2 -o ex2 ex2/main.cpp ex2/player.cpp ex2/container.cpp ex2/swordsman.cpp ex2/archer.cpp ex2/mage.cpp +cls +echo compile finished! The program is in current folder! +pause + +exit + + diff --git a/as2/exe_files/these_exe_files_just_in_case b/as2/exe_files/these_exe_files_just_in_case new file mode 100644 index 0000000..e69de29