- C Language
- Draw.io [https://github.com/jgraph/drawio-desktop/releases/tag/v22.0.0]
- Visual Studio Code [https://code.visualstudio.com/download]
- Git [https://git-scm.com/downloads]
- Github [https://github.com]
- MinGw [https://sourceforge.net/projects/mingw/files/latest/download]
- Code Runner (Visual Studio Code Extension)
- C/C++ (Visual Studio Code Extension)
- Terminal (Powershell, Iterm, Command Prompt (CMD), Bash, Zsh, Fish, etc)
- Windows Subsystem for Linux (optional for Windows user)
I assume you already installing git in your computer, then you can clone this repository by typing this command in your terminal:
$ git clone https://github.com/praktikum-alprog-unud-2023/Dasar-Bahasa-C.git
You should change your directory to this repository by typing this command:
$ cd Dasar-Bahasa-C
If you already have this repository in your computer, but you don't have the latest version (i.e. your teammate already push their own work), you can update it by typing this command:
$ git pull
If you want to add your own work to this repository, you can add your own file by typing this command:
$ git add .
Then you can commit your own work by typing this command:
$ git commit -m "your commit message"
Finally you can push your own work to this repository by typing this command:
$ git push
If you already have the gcc compiler (MinGw) installed on your computer, you can compile the C program by typing this command:
$ gcc main -o main.c
You can run your compiled program by typing this command:
$ ./main
Or you can compile and run it directly by typing this command:
$ gcc main -o main.c && ./main
The following is the project structure that must be used during the Practicum project.
.
├── README.md
├── modul-<1>
│ ├── <1>-<Kalkulator>
│ │ ├── question.md
│ │ ├── main.c
│ │ └── main.exe
│ ├── ...
│ ...
...