Getting Started With C

From CsWiki
Revision as of 16:54, 1 August 2018 by Yoav.eshed (Talk | contribs) (Created page with "==introduction== This page describes the necessary surrounding for coding in c programming language and running your code.<br/> ===introduction=== Coding in C language can...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

introduction

This page describes the necessary surrounding for coding in c programming language and running your code.


introduction

Coding in C language can be done by different IDE’S. The recommended on is Clion IDE by jetbrains.

In the Aquarium computers, it can be found at the applications Tab → Programming→ Clion.

For windows installation, students can apply for free license from jetbarins, at [1],
by pressing apply now and then filling the form. A confirmation mail will be sent to your email,
and after you confirm it you can download Clion or any other jetbrains software for free.

Compiling in C

Compiling is the process of converting one programing language to another. It is executed by a computer program called a compiler.
In The school’s computer system, GCC is the default compiler used by courses for compiling needs.

How to Compile With GCC

After finishing writing down the code , open the terminal , then select the folder where your file is saved by using :cd -PATH/.
Then use the compiling command “gcc file_name.c -o output filename(your choice).
If you get warnings, the file will not be compiled, until the problem that cause the warning to raise isn't solved.
else,the file will be compiled and an output file with the name you have designated will be created at the same
directory as the compiled file.
Now to run it you just enter the output file name into the console.