#include #include "cVec2.h" using std::endl; using std::cout; using std::cin; int main() { cVec2 p(3, 5); p.PrintVec(); cVec2 pzero; pzero.PrintVec(); cVec2 tmp; //pの4倍 tmp = p.NmulVec(4.0); tmp.PrintVec(); cVec2 p2(-4, 8); tmp = p.NplusVec(p2); tmp.PrintVec(); cout << "内積" << p.Iproduct(p2) << endl; }