LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2002, 05:03 AM   #1
Eits0
Member
 
Registered: May 2002
Location: Finland
Distribution: Mandrake 9.0
Posts: 188

Rep: Reputation: 30
Arrow I want to start programming, need help though...


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!

 
Old 05-13-2002, 05:38 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
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
 
Old 05-13-2002, 05:42 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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.
 
Old 05-13-2002, 01:55 PM   #4
Eits0
Member
 
Registered: May 2002
Location: Finland
Distribution: Mandrake 9.0
Posts: 188

Original Poster
Rep: Reputation: 30
Where to find instructions and tutorials for Emacs then?
I really hate when kdev creates massive amount of files.

And I want to learn C first.
 
Old 05-13-2002, 03:18 PM   #5
tyler_durden
Member
 
Registered: May 2001
Posts: 125

Rep: Reputation: 15
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
 
Old 05-15-2002, 12:23 AM   #6
Bomber
LQ Newbie
 
Registered: Jan 2002
Location: Melbourne, Australia
Distribution: Debian
Posts: 13

Rep: Reputation: 0
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).

Python Rawks!!

Cheers..
 
Old 05-15-2002, 01:26 PM   #7
Eits0
Member
 
Registered: May 2002
Location: Finland
Distribution: Mandrake 9.0
Posts: 188

Original Poster
Rep: Reputation: 30
Arrow

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?

Yes, as it goes for programming, I'm total

<- phear tha confused pengy!!!
 
Old 05-15-2002, 02:02 PM   #8
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Creating a new file using emacs: Open it (Ctrl+(x,f)), if it doesn't exist then it will when you save.

'Basic' Perl editor: emacs + perl-mode
 
Old 05-16-2002, 08:46 AM   #9
Eits0
Member
 
Registered: May 2002
Location: Finland
Distribution: Mandrake 9.0
Posts: 188

Original Poster
Rep: Reputation: 30
Talking

Thankyouverymuch dorward!
You are very patient with me, that solved the problem!

I have already created 5+ example programs with C!!!
I loaned C manual from library!!!
I have programming courses coming in upper secondary next year!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where to start Linux programming cliff76 Linux - Newbie 2 06-30-2005 02:24 PM
When and why did you start programming? BBB Programming 33 01-17-2005 04:29 PM
For those of you interested in programming, but don't know where to start: Fabyfakid Programming 0 11-06-2004 12:38 PM
Help A Newb Start Programming AFI_Flame Programming 2 07-03-2004 11:47 PM
how and where to start programming in linux? ninadb Programming 12 05-10-2004 12:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration