Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
protected
//g++ 5.4.0 #include <iostream> class xyz { protected: float x,y,z; public: xyz(float x, float y, float z) : x(x), y(y), z(z) {} }; class vector : public xyz { public: vector(float x, float y, float z) : xyz(x,y,z) {} }; class vertex : public xyz { public: vertex(float x, float y, float z) : xyz(x,y,z) {} void translate(const vector& vect) { x += vect.x; y += vect.y; z += vect.z; } }; int main() { std::cout << "Hello, world!\n"; }
run
|
edit
|
history
|
help
0
Interest Compounding
Stream generalization
Find the max and min number in array
1234
A • Potato Sacks
BintTree vertical sum
MenuStream
co_assign_1_ques_1
TypeSizeTest
asa