Page 6 of 6 FirstFirst ... 3456
Results 51 to 55 of 55
  1. #51

    Default Re: C/C++ i need help in making a program


    OT:
    Quote Originally Posted by trunks
    bitaw mga bro unsa bitaw kalainan sa procedural ug OPP programming? What are thier advantages and disadvatages? thanks
    Object Oriented programming - is a programming paradigm that uses "objects" to design applications and computer programs.
    http://en.wikipedia.org/wiki/Object_...ed_programming

    Procedural programming - is a programming paradigm that uses procedures or functions to solve a programming task.
    http://en.wikipedia.org/wiki/Procedural_programming

    Comparison with OOP
    http://en.wikipedia.org/wiki/Procedu...ed_programming.

  2. #52

    Default Re: C/C++ i need help in making a program

    Quote Originally Posted by cen
    OT:
    Object Oriented programming - is a programming paradigm that uses "objects" to design applications and computer programs.
    http://en.wikipedia.org/wiki/Object_...ed_programming

    Procedural programming - is a programming paradigm that uses procedures or functions to solve a programming task.
    http://en.wikipedia.org/wiki/Procedural_programming

    Comparison with OOP
    http://en.wikipedia.org/wiki/Procedu...ed_programming.
    the way i look at it, OOP is like CSS to HTML. lesser code avoiding repetitions, well organized layout, easy to locate and remember a certain line of code, INHERITANCE, hierarchy, etc... out of your CSS stylesheet, makabuhat ka ug daghan HTML pages.

    CSS is to CLASS and HTML is to OBJECT.

    OOP is -
    maghimo ka ug class (customized group of functions - ikaw magbuot) for example: (very simple example)

    class Dog //mao ni imo CLASS (iro!)
    {
    public:
    int getAge() const {return itsAge;
    int getWeight() const {return itsWeight;}
    void setAge(int age) {itsAge = age;}
    void setWeight(int weight) {itsWeight = weight;}
    private:
    int itsAge;
    int itsWeight;
    };

    then magbuhat ka ug object gikan sa imo class.

    int main()
    {
    Dog Browny; //si Browny imo OBJECT gikan sa imo 'class Dog'. come here Browny!

    Browny.setAge(5);
    cout << "Age ni Browny: " << Browny.getAge() << "\n";
    Browny.setWeight(32);
    cout << "Timbang ni Browny: " << Browny.getWeight() << "\n";
    system("PAUSE");
    return 0;
    }

    gikan sa imo CLASS Dog gabuhat ka ug OBJECT Browny.

    hope this helps.



  3. #53

    Default Re: C/C++ i need help in making a program

    Quote Originally Posted by morphian
    CSS is to CLASS and HTML is to OBJECT.
    OT:
    nope. Layo ra man cguro na ang duha.

    CLASS is to "CAR blueprint" and CAR is to Object.

    (Last na ni nga off-topic nako mods)

  4. #54
    guys asa tah ka kuha ug c++ na compiler? naka try na mu anang ms visual c? i need to refresh my programming skills. native programming pa gyud ko... dili pa ko sabot anang asp.net na combination... who has an old school compiler..kating murag dos ug nawong or visual c++ pero native programming.

  5. #55
    Quote Originally Posted by YUE View Post
    guys asa tah ka kuha ug c++ na compiler? naka try na mu anang ms visual c? i need to refresh my programming skills. native programming pa gyud ko... dili pa ko sabot anang asp.net na combination... who has an old school compiler..kating murag dos ug nawong or visual c++ pero native programming.
    I guess naa man cguro C++ for linux. freeware man na. pero if your looking for C++ for windows well you'll have a hard time looking for it since most of them are protected by a license.

  6.    Advertisement

Page 6 of 6 FirstFirst ... 3456

Similar Threads

 
  1. Replies: 5
    Last Post: 03-04-2013, 04:24 PM
  2. Need help in Classic ASP programming
    By afortaliza in forum Programming
    Replies: 4
    Last Post: 12-08-2008, 02:18 PM
  3. Need help in Installing Java programs in my Samsung D880
    By Soj in forum Software & Games (Old)
    Replies: 0
    Last Post: 04-24-2008, 06:34 PM
  4. need help in going to Aparri.
    By mnpesiao in forum Destinations
    Replies: 4
    Last Post: 05-21-2006, 11:16 AM
  5. Want to buy a new mp3 player. Need help in selecting one.
    By metdumangas in forum Gizmos & Gadgets (Old)
    Replies: 21
    Last Post: 01-04-2006, 09:01 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top