| | |
Passing Class Objects, Instances
![]() |
•
•
Join Date: Jun 2005
Posts: 3
Reputation:
Solved Threads: 0
I have a project creating a cartesian point, then a line segment, then a line comparison. Each has its own class .h and .cpp file. Main just starts the program to CartesianPoint test, in the point class. My question is after I create an instance of the point class and create a point, say P1, how can I then pass this object, (an instance of the point class) to the LineSegment class, to find slope and such. Line inherits LineSegment which inherits CartesianPoint. I have no idea what I'm doing.
Thanks
Thanks
![]() |
Similar Threads
- Passing arrays of objects to functions (C++)
- Array of Class Objects? (C++)
- Passing Class Objects, Instances (C++)
- Problem Passing a Class Object to a Queue (C++)
Other Threads in the C Forum
- Previous Thread: Header FileS in Other Directories
- Next Thread: binary to decimal values conversion
Views: 1418 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
api arguments array arrays binary binarysearch c++ char character code codes coke command conversion convert copyimagefile cpu creafecopyofanytypeoffileinc database decimal directory dude dynamic ebooks error evaluation exec factorial fgets file files fork function functions givemetehcodez grade graphics homework i/o input insert int integer lazy leak leet_speak line linked linkedlist linux list lists logical_drives loop loops malloc matrix memory messagebox mysql no-effort opensource output path pause pointer pointers problem process program programming questions read recursion recursive recv refresh reverse roman2decimal scanf scripting socketprograming spoonfeeding sql string strings strtok structures student studio suggestions system turbo turbo-c turboc unix user variable why-not-to-use-turbo windows






