how to work with gcc compiler of c lang.?

Actually i have worked more with turbo compiler and whenever i run my code i suffer from many errors so can u tell me what thing i should not do in gcc. Thank u.

You can tell us what errors you get. And I would recommend using Codechef IDE for solving problems on codechef.

1 Like

Check out these sites :

  1. www.network-theory.co.uk/docs/gccintro/gccintro_9.html

  2. The gcc compiler - Cprogramming.com

Cheers!

2 Likes

In turbo,there is no header file like bits/stdc++.h

In gcc,there are many advantages of using in-built functions etc.

1 Like
  1. You can download GCC compiler over the internet. If you’re complete newbie use Compile and run the code with online compiler and IDE | CodeChef or ideone.com, these websites are very good for getting started, you can write and test code in the online ide itself and it reduces lots of complicacy faced by newbies.
  2. Uninstall turbo C++ its worst application ever, better use eclipse IDE or netbeans those are better than turbo C++.
1 Like

Use C++ editors such as : Dev C++, CodeBlocks.

Sites :

  1. Home - Dev-C++ Official Website

  2. www.codeblocks.org/

Cheers!

2 Likes

Also check out this :

  1. https://www.quora.com/What-is-the-difference-between-Visual-C++-and-Turbo-C++

  2. https://www.quora.com/What-is-the-difference-between-using-Turbo-C-and-GNU-C-C++

Ya my habit is writing conio.h, getch etc which really a worse thing which we starters has to suffer compare to gcc compilers.

use ideone and refer to my github link, it has good written code, usually spoj solution, use similar syntaxes: GitHub - nilabja-bhattacharya/SPOJ-Solutions: Solutions to SPOJ Problems
Better use #include <bits/stdc++.h> you don’t need to write anything else in header, getch isn’t required in CP