- Install Visual Studio Code: Download and install VS Code from the official website
- Install the C/C++ Extension:
- Open VS Code.
- Go to the Extensions view (Ctrl+Shift+X).
- Search for "C++" and install the Microsoft C/C++ extension.
- Install MinGW-w64 (GCC Compiler):
- Download and install MSYS2 from the MSYS2 website.
- Follow the instructions to update packages and install the GCC compiler using the pacman command within the MSYS2 terminal (the specific commands are detailed in the freeCodeCamp guide).
- Add to PATH: Add the path to the MinGW bin folder (e.g., C:\msys64\ucrt64\bin) to your Windows environment variables so VS Code can find the compiler.
- Configure VS Code: Follow the official VS Code documentation to configure your project to use the MinGW compiler.
membuat kompilasi
g++ nama_file -o nama_file_di_kompilasi
jalankan file kompilasi
./nama_file_di_kompilasi
atau bisa membaca official VS Code documentation
Sistem ini menggunakan penyimpanan file eksternal untuk menyimpan data akun dan log kehadiran.
// Menghasilkan timestamp otomatis untuk setiap absen
string ambilWaktu() {
time_t now = time(0);
char* dt = ctime(&now);
string waktu = dt;
waktu.pop_back();
return waktu;
}setelah berhasil buat akun atau berhasil absen akan ada 2 file yaitu data_absensi.txt dan log_absensi.txt yang dibuat otomatis untuk menyimpan log absen dan data login.
Mata uang yang bisa dikonversi
| IDR(16604) | ke | USD(1) |
| IDR(19303) | ke | EUR(1) |
| IDR(106) | ke | JPY(1) |
selebihnya menyusul hehe..
malasss