C++ > Beginners Lab Assignments
A simple class called Point, with all necessary functions
A simple class called Point, with all necessary functions # include
# include
# include
class point { int x,y,z; public: point() { x=y=z=0; } point(int i,int j,int k) { x=i; y=j; z=k; } point(point &a) { x=a.x; y=a.y; z=a.z; } negate() { x=-x; y=-y; z=-z; } void print() { cout<<"("<
C++ Codes
Algorithms
Beginners
Code Snippets
Graphics
Data Structures
Games
Mathematics
Miscellaneous