17 lines
No EOL
396 B
C++
17 lines
No EOL
396 B
C++
#include "point2d.h"
|
|
#include "point3d.h"
|
|
|
|
int main(void)
|
|
{
|
|
Point2D pointA(2.0f, 3.0f);
|
|
Point3D pointB(pointA, 4.0f);
|
|
pointB = pointB * 5;
|
|
pointA.Affiche2();
|
|
pointB.Affiche2();
|
|
std::cout << "pointA: " << pointA << std::endl;
|
|
Point2D pointC;
|
|
std::cin >> pointC;
|
|
std::cout << "pointC entered: " << pointC << std::endl;
|
|
friendFunction(pointA);
|
|
return 0;
|
|
} |