GithubHelp home page GithubHelp logo

rmaniego / c101 Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 73 KB

A dump for all of my noob C codes, let see if I can code like what I do in other languages.

License: MIT License

C 99.77% Shell 0.23%

c101's Introduction

c101

A dump for all of my noob C codes, let see if I can code like a real Computer Science person! (Send Help)

initial setup

NOTE: This was my actual Windows 10 (Administrator) setup

  1. Download CodeBlocks with MinGW setup.
  • I downloaded CodeBlocks, but thought, I still prefer Notepad++ and Command Prompt
  1. Once downloaded, run and complete the setup.
  2. Add MinGW/bin to System PATH:
  • Locate and copy the full path of C:\...\CodeBlocks\MinGW\bin
  • Search for "Edit the system environment variables" (under System Properties > Advanced)
  • Click the Environment Variables... button
  • Under the System variables, edit Path
  • Add MinGW/bin to Path
  1. Launch command prompt, then run gcc -v to verify if setup is OK.
  2. Done, you can now start coding in C!

Using GCC

gcc <filename>.c -o <appname>
<appname>

Build, Run Faster

  1. Create a new CMD/Batch file, e.g. build.cmd
cls
setlocal ENABLEDELAYEDEXPANSION
set f=%1
set f=%f:.c=%
cls
gcc %f%.c -o %f%
%f%
  1. Add the Batch file's directory to Path (System variables)
  2. Launch Command Prompt application
  • Locate your code directory
  • Run command: build <filename> (without the .c)

disclaimer

  1. Codes might be too bookish and not simplified, teach me senpai!
  2. Some implementations are not yet optimized (or correct?), because author is still at beginner level.
  3. Some time complexity calculations may be wrong, but will be corrected as I learn how to do it properly.
  4. Other things might have been overlooked, I will work on that.

c101's People

Contributors

rmaniego 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.