-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_cpp_projects.bat
More file actions
44 lines (41 loc) · 1.33 KB
/
Copy pathrun_cpp_projects.bat
File metadata and controls
44 lines (41 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off
echo =========================================
echo C++ Capstone Project Runner
echo =========================================
echo 1. Todo CLI Manager
echo 2. Contact Manager
echo 3. Advanced Student Database System
echo =========================================
set /p choice="Enter your choice (1-3): "
if not exist bin mkdir bin
if "%choice%"=="1" (
echo Compiling Todo Project...
g++ -Wall -Wextra -std=c++17 projects\01-todo-cli\main.cpp -o bin\todo.exe
if %ERRORLEVEL% == 0 (
echo Compilation Successful! Starting...
bin\todo.exe
) else (
echo Compilation Failed!
)
) else if "%choice%"=="2" (
echo Compiling Contact Manager...
g++ -Wall -Wextra -std=c++17 projects\02-contact-manager\main.cpp -o bin\contacts.exe
if %ERRORLEVEL% == 0 (
echo Compilation Successful! Starting...
bin\contacts.exe
) else (
echo Compilation Failed!
)
) else if "%choice%"=="3" (
echo Compiling Student Database System...
g++ -Wall -Wextra -std=c++17 projects\03-student-db\main.cpp projects\03-student-db\student.cpp projects\03-student-db\report.cpp -o bin\student_db.exe
if %ERRORLEVEL% == 0 (
echo Compilation Successful! Starting...
bin\student_db.exe
) else (
echo Compilation Failed!
)
) else (
echo Invalid choice!
)
pause