#include using namespace std; // declaration class vector { private: float x,y,z; public: vector(float a=0, float b=0, float c=0) { x=a; y=b; z=c; }// vector() ~vector() {} // nothing to do :) void prtVec(); };// class vector // definitions void vector::prtVec() { cout << x << ", " << y << ", " << z << endl; }// prtVec() int main() { vector v; // constructed with 0,0,0 v.prtVec(); vector v2(1,2,3); v2.prtVec(); return 0; }// main()