Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Question about C++

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  

Procedural or OOP
Procedural/Generic/Structural
100%
 100%  [ 1 ]
OOP
0%
 0%  [ 0 ]
Total Votes : 1

Author Message
reubatsch456
Cheater
Reputation: 0

Joined: 03 Jan 2008
Posts: 30

PostPosted: Thu Jan 03, 2008 5:28 pm    Post subject: Question about C++ Reply with quote

I have been learning C++ for a while now. I was wondering if learning the OO/Polymorphism part is really crucial to the language. Can I possible get by C++ without using its OOP extensions and just use its other features for a better procedural programming?

Also, out of curiosity, I was wondering if any of you people preferred procedural programming to OOP.

Thanks.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Jan 04, 2008 5:44 am    Post subject: Reply with quote

C++ itself is OOP. It was created, and formally named 'C With Classes' when it was first created which was later then renamed to C++. OO (Object-Oriented for the people not really following along) includes, and is not limited to: Objects, Classes, Sub-Classes, Virtual Methods, Coroutines, Garbage Collection, and Discrete Event Simulation.

Quote:
Object-oriented programming may be seen as a collection of cooperating objects, as opposed to a traditional view in which a program may be seen as a group of tasks to the computer ("subroutines"). In OOP, each object is capable of receiving messages, processing data, and sending messages to other objects.


If you are programming in C++ you wont avoid OO at all unless you are using a C++ compiler to code in straight C. Although most don't see classes as being part of the OOP style, they are.

Reference: (Because referencing is fun!)
http://en.wikipedia.org/wiki/Object-oriented_programming

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Fri Jan 04, 2008 5:54 am    Post subject: Reply with quote

Wiccaan wrote:
If you are programming in C++ you wont avoid OO at all unless you are using a C++ compiler to code in straight C. Although most don't see classes as being part of the OOP style, they are.
I was going to say exactly the same after reading your post. If you're not intrested in the OO-stuff, why not to code in pure C?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites