Skip to content
/ c Public

Kumpulan source kode dalam bahasa C untuk pembelajaran dasar pemrograman, aplikasi untuk penggunaan umum, dan mini project.

Notifications You must be signed in to change notification settings

0xbaha/c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Catatan C

GitHub repo size GitHub code size in bytes GitHub top language GitHub last commit GitHub

Kumpulan source kode dalam bahasa C untuk pembelajaran dasar pemrograman dan aplikasi untuk penggunaan umum.

Online Compiler

Visual Studio Code Settings

💻 Windows

Download MinGW64 jika belum ada, bahan bacaan klik di sini.

File seting di folder .vscode.

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "gcc.exe - Build and debug active file",
      "type": "cppdbg",
      "request": "launch",
      "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceFolder}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "gdb",
      "miDebuggerPath": "C:\\MinGW64\\bin\\gdb.exe",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "preLaunchTask": "C/C++: gcc.exe build active file"
    }
  ]
}

tasks.json

{
  "tasks": [
    {
      "type": "shell",
      "label": "C/C++: gcc.exe build active file",
      "command": "C:\\MinGW64\\bin\\gcc.exe",
      "args": [
        "-g",
        "${file}",
        "-o",
        "${fileDirname}\\${fileBasenameNoExtension}.exe"
      ],
      "options": {
        "cwd": "${workspaceFolder}"
      },
      "problemMatcher": [
        "$gcc"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ],
  "version": "2.0.0"
}

💻 Linux

Download gdb jika belum ada, bahan bacaan klik di sini.

$ sudo apt-get update
$ sudo apt-get install gdb

File seting di folder .vscode.

launch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "gcc-8 - Build and debug active file",
      "type": "cppdbg",
      "request": "launch",
      "program": "${fileDirname}/${fileBasenameNoExtension}",
      "args": [],
      "stopAtEntry": false,
      "cwd": "${workspaceFolder}",
      "environment": [],
      "externalConsole": false,
      "MIMode": "gdb",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "preLaunchTask": "C/C++: gcc-8 build active file",
      "miDebuggerPath": "/usr/bin/gdb"
    }
  ]
}

task.json

{
  "tasks": [
    {
      "type": "shell",
      "label": "C/C++: gcc-8 build active file",
      "command": "/usr/bin/gcc-8",
      "args": [
        "-g",
        "${file}",
        "-o",
        "${fileDirname}/${fileBasenameNoExtension}"
      ],
      "options": {
        "cwd": "${workspaceFolder}"
      },
      "problemMatcher": [
        "$gcc"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ],
  "version": "2.0.0"
}

About

Kumpulan source kode dalam bahasa C untuk pembelajaran dasar pemrograman, aplikasi untuk penggunaan umum, dan mini project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages