ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have now those development programs that came with Mandrake disks, but it seems like they are very difficult to use.
Let's take a example: I want to create new program from scratch with KDevelop but it doesn't allow me to do it. It allows me to "start new project" and then creates manymany files, and all I want to do is learn C with tutorial booklets.
So I write and run new program (Only prints "Damn I'm god!"), and after I've run it I erase whole program to start with other tutor, but then it tells me that "void(main) void mentioned earlier in this program". Whatta hell???
Emacs is allmost out of question, I don't understand it at all.
Plz tell me some good and easy to use C/C++ programs to begin with. I know I have talent, but lack of real programming is HUGE!
best way to start programming -whatever language- is use a simple editor.(at least thatīs what i think). emacs isnīt difficult at all. if you go thru the tutorial once you can use it easily + itīs a very pretty solution. but there are simpler editors available. i sometimes use gedit but i donīt know if mandrake has it. kedit? what language do you want to start with?
perl, c, c++ --> emacs
it will correct a whole lot of little mistakes youīll probably make. give it a serious try, 1 or 2 hours
cheers jens
i recommend using pico for simple quick c code and such. kdevelop and other ide's do create a lot of files, but they're there for a reason, the dea being that you write your software, and then just compress the entire thing and it's ready for proper distribution. there's nothign specifically difficult abuot the developement programs, you just swant to find the ones you like. i like using anjuta for big projects personally.
Here is my suggestion as to how to get started. This is what you will need to start with c.
First. you will need a good editor. For linux i recommend kate (part of kde). its graphical, easy to use and does highligting. thats all you need. If you are in windows, i recommend edit plus. You can get a free demo version here here. You can then just start typing in file and saving it. ice tutorial1.c and so on.
Second, you need a c compiler. For linux, thats definetly gcc. You can compile your code by typing gcc file.c , then type ./a.out to run it. For windows, you can download a free c compiler from borland here.
Now, you should also have a few good tutorials. One of my favorite online references for c programing is here. You whould definetly invest in a few c books as well.
Now, if you are begining programing, you may want to try another laguange first. Perl is a lot easier to learn and a little more forgiving, but i have never really read a good begining porgraming with perl tutorial.
Java is also a Very good language to learn. Its not really usefull for much, other then web stuff. You will also have to deal with object oriented design, which can be a little confusing at first. The plus sides are that there is a HUGE class library that can do almost ANYTHING. This will help to prevent you from re-inventing the wheel every time you want to do somehting. It also is a lot more forgiving and easier to debug. you can get some good java stuff at java.sun.com and borland.com. if you need anymore help post here or you can also drop me an email
If you are just starting programming, I'd suggest you dont bother with C for the time been and take a look at Python ( http://www.python.org ) ... it is a superb language and very easy to pick up (making it an ideal beginners language).
OK now, I finished the Emacs tutorial, now I can move around in konsole quite swiftly and delete and retrieve deleted lines/words, but there is one single problem, wich makes me look like unbelievable stupid:
HOW DO I WRITE STUFF ON THAT -> HOW I BEGIN NEW FILE TO DO THAT -> HOW TO SAVE IT AS .C????
I can compile with it already, as I dl'ed that stupid "Hello world!" program.
Perl? What is basic editor for it shipping with Linux?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.