Search found 122 matches

by Deluge
Fri Apr 30, 2010 10:04 am
Forum: C++ Development
Topic: Question about class instances in C++
Replies: 5
Views: 796

Okay, I am beginning to understand. Thank you for the well written answer. I never used attributes in Python (I don't think), I always placed everything in the constructor method with a pointer. I am still trying to get my head wrapped around OOP. One of the most confusing things for me, coming from...
by Deluge
Fri Apr 30, 2010 5:13 am
Forum: C++ Development
Topic: Question about class instances in C++
Replies: 5
Views: 796

Question about class instances in C++

I mostly use Python so C++ is a foreign to me. From what I understand, I can either create a "prototype"--I think it's called--in the header file, or I can just create the class instance altogether in the main function. In case this isn't clear, I'll put up the code I am referring to. This first met...