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