LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-04-2004, 04:30 PM   #1
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
c programming help (i do this in linux ;) )


I have a fews questions and a request. My first question is what is the definition of 'object-oriented' and what does it entail. How does this compare with 'struct' programming and does C support object-oriented?(i know C++ does).

My request is: Can anyone give me some ideas on programs i should make? I want to use only command-line (no GUI) and it be open-source designed for unix/linux.

-thanks
 
Old 06-04-2004, 08:38 PM   #2
LavaDevil94
LQ Guru
 
Registered: Jul 2003
Distribution: Gentoo 2004.2: Who needs exmmpkg when you have emerge?
Posts: 1,795

Rep: Reputation: 47
For the request: First, find out some basics. Your questions, and quite a few others with their answers can be found here with some C++ tutorials:
http://cone3d.gamedev.net
Second, think of something that you could use. Like a simple text editor or something. Then create that. Thats what programming was made for, making stuff that you need (and for headaches ).
 
Old 06-07-2004, 09:36 AM   #3
villie
Member
 
Registered: Apr 2004
Location: Pakistan
Distribution: RedHat
Posts: 46

Rep: Reputation: 15
There is quite a lot difference between structured programming and object oriented programming. In structured programming , you concentrate on the things to do . You than devide the whole thing into a number of procedures (functions in C) the data is a subsidary thing and is just use to pass information between the procedures. In object oriented , the data gets important . You define objects which actually represent data related with some thing or concept and you put the procedures that act on those data along with that ) . Mostly data is only accessible through those procedures ( functions in C , methods in Java ) . Object oriented makes the designing easier and it also helps to make the program flexible and clean. Object oriented is just a way of designing , you can do it in any language , even in assembly :-) . You can do object oriented in C using function pointers and structures. If you are new to programming I'll advise you to go for C++ and learn object oriented design , this will help you in long run. As for which programs to make , try thinking of what you want your computer to do , and try to see whether you can program such thing. Like for example for starters , you might want to create an application that stores the phone numbers and addresses of all your friends.
And remember programming is great fun , and is one of three things , every one on this planet should know.
 
  


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
Difference between Top Down programming & Bottom up programming minil Programming 1 06-17-2005 02:42 AM
New Forum for Linux-Gurus[Programming/Administration] or Linux-Advanced Users [ Progr raees LQ Suggestions & Feedback 5 04-12-2005 07:35 PM
C/C++ programming for linux leeman_s Linux - General 6 01-28-2003 06:16 PM
Exp. Windows/Linux-Script Programmer - Need Linux Programming Mentor! ruttiger Linux - Newbie 2 10-28-2001 11:00 AM
New to Linux programming .... need help Izhar Programming 2 10-17-2001 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:04 AM.

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