Giter Club home page Giter Club logo

c-master's Introduction

C ์–ธ์–ด ํ•™์Šต์„ ์œ„ํ•œ Boilerplate ์ฝ”๋“œ์ €์žฅ์†Œ

์ด ์ €์žฅ์†Œ๋Š” C ์–ธ์–ด ํ•™์Šต์„ ์œ„ํ•œ boilerplate ์ฝ”๋“œ๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ํ•™์ƒ๋“ค์€ ์ด ์ฝ”๋“œ๋ฅผ ํ†ตํ•ด ๊ธฐ์ดˆ์ ์ธ C ์–ธ์–ด ๊ฐœ๋…๊ณผ ๋ฌธ๋ฒ•์„ ์—ฐ์Šตํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์ปดํŒŒ์ผ ๋ฐ ์‹คํ–‰ ๋ฐฉ๋ฒ•

macOS

  1. Terminal์„ ์—ด๊ณ  Xcode Command Line Tools๊ฐ€ ์„ค์น˜๋˜์–ด ์žˆ๋Š”์ง€ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค.

    xcode-select --install
    
  2. C ์†Œ์Šค ํŒŒ์ผ์ด ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

  3. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ C ํŒŒ์ผ์„ ์ปดํŒŒ์ผํ•ฉ๋‹ˆ๋‹ค:

    gcc -o main main.c
    
  4. ์ปดํŒŒ์ผ์ด ์™„๋ฃŒ๋˜๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค:

    ./main
    

Windows

  1. C ์ปดํŒŒ์ผ๋Ÿฌ(์˜ˆ: MinGW)๋ฅผ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค.

  2. ๋ช…๋ น ํ”„๋กฌํ”„ํŠธ(Command Prompt)๋ฅผ ์—ด๊ณ  C ์†Œ์Šค ํŒŒ์ผ์ด ์žˆ๋Š” ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.

  3. ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ C ํŒŒ์ผ์„ ์ปดํŒŒ์ผํ•ฉ๋‹ˆ๋‹ค:

    gcc -o main.exe main.c
    
  4. ์ปดํŒŒ์ผ์ด ์™„๋ฃŒ๋˜๋ฉด ๋‹ค์Œ ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ํ”„๋กœ๊ทธ๋žจ์„ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค:

    main.exe
    

์ฐธ๊ณ  ์ž๋ฃŒ

์œ„์˜ ์ž๋ฃŒ๋“ค์€ C ์–ธ์–ด ๊ธฐ์ดˆ ๊ฐœ๋…์„ ํ•™์Šตํ•˜๋Š” ๋ฐ ๋„์›€์ด ๋  ๊ฒƒ์ž…๋‹ˆ๋‹ค.


C ์–ธ์–ด ๋งˆ์Šคํ„ฐ๊ฐ€ ๋˜๋Š” ๊ทธ ๋‚ ๊นŒ์ง€...

c-master's People

Contributors

humonnom avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.