您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

buildAndRun 327B

12345678910111213141516171819
  1. if [ "$(uname --operating-system)" == "Msys" ]
  2. then
  3. CFLAGS='-I.. -std=c++11 -g -O0 -DWIN32'
  4. else
  5. CFLAGS='-I.. -std=c++0x -g -O0'
  6. fi
  7. g++ $CFLAGS childProgram.cpp -o childProgram
  8. if [ $? -ne 0 ]
  9. then
  10. exit -1
  11. fi
  12. g++ $CFLAGS testChild.cpp ../CodeDweller/child.cpp -o testChild
  13. if [ $? -ne 0 ]
  14. then
  15. exit -1
  16. fi
  17. ./testChild