mirror of https://github.com/string1995/eee102.git
parent
10b875b78e
commit
2b0d832aec
5 changed files with 75 additions and 13 deletions
@ -0,0 +1,2 @@ |
|||||||
|
/test |
||||||
|
*.exe |
@ -0,0 +1,2 @@ |
|||||||
|
/test |
||||||
|
*.exe |
@ -0,0 +1,12 @@ |
|||||||
|
## How to begin |
||||||
|
Please execute the compilergcc.bat to compile.<br/> |
||||||
|
|
||||||
|
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 |
||||||
|
```` |
||||||
|
|
||||||
|
## gcc Download url |
||||||
|
**For windows** |
||||||
|
https://yimian-setup.obs.myhwclouds.com/setup/tdm64-gcc-5.1.0-2.exe |
@ -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 same_vec same_vec.cpp |
||||||
|
g++ -O2 -o Fraction_test Fraction_test.cpp Fraction.h |
||||||
|
cls |
||||||
|
echo compile finished! The program is in current folder! |
||||||
|
pause |
||||||
|
|
||||||
|
exit |
||||||
|
|
||||||
|
|
Loading…
Reference in new issue