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.
Check out these sites :
In turbo,there is no header file like bits/stdc++.h
In gcc,there are many advantages of using in-built functions etc.
- You can download GCC compiler over the internet. If you’re complete newbie use www.codechef.com/ide 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.
- Uninstall turbo C++ its worst application ever, better use eclipse IDE or netbeans those are better than turbo 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 C++ editors such as : Dev C++, CodeBlocks.
use ideone and refer to my github link, it has good written code, usually spoj solution, use similar syntaxes: https://github.com/nilabja10201992/SPOJ-Solutions
Better use #include <bits/stdc++.h> you don’t need to write anything else in header, getch isn’t required in CP