Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4552  / 2 Years ago, sun, july 10, 2022, 8:40:31

it's been a while since I think about starting to programming in C and after that to learn programming in C# and I search a lot on google but couldn't find a good guide to start learning base programming in C .However I found that Eclipe integrates very good with Ubuntu and it's a good programming environment for starting to program in C but somebody can give please some links with guides or tell me where can I find the bases for starting to program in C ,and I mean good base because I found a lot of incomplete guides over google ? And if I don't ask to much please give some tips of how to start and how to use Eclipse.Every help will be welcome ,thanks.


More From » programming

 Answers
4

You do not need to complicate things with Eclipse and stuff if you want to learn C (which is also an interesting choice of a first programming language... while not discouraging you, I'm curious about your motives). I think it would be much more useful to learn how all the low-level bits (source code, compiler, headers, libraries, debugger, makefiles) fit together and then, if you want, to transition to an IDE.



From the Learn C the Hard Way book linked by Goddard:




An IDE, or "Integrated Development Environment" will turn you stupid.
They are the worst tools if you want to be a good programmer because
they hide what's going on from you, and your job is to know what's
going on. They are useful if you're trying to get something done and
the platform is designed around a particular IDE, but for learning to
code C (and many other languages) they are pointless.




You surely don't need Eclipse to write a "Hello, World" program in C. First install stuff needed to compile programs:



sudo apt-get install build-essential


then open a text editor and type something like



#include <stdio.h>

int main() {
printf("Hello, World
");
return 0;
}


save the file as hello.c. In terminal, run



gcc hello.c -o hello


you'll find an executable file called hello in the same directory. Run it:



./hello


It prints "Hello, World". Magic! Now get a book on C and try to modify the program to do something interesting.


[#34781] Monday, July 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tersle

Total Points: 342
Total Questions: 109
Total Answers: 99

Location: Kazakhstan
Member since Mon, Sep 26, 2022
2 Years ago
;