i see this code in this thread, i want to know how to get input by user or from file in this code. for example this list how to use it as input in this code. i don't know how to modify and how to use it.
#include <iostream>
#include <fstream>
usingnamespace std;
int
a = 0,
b = 0;
ifstream In( "Input.txt" );
while( In.good() )
{
In >> a;
In >> b;
/* Do something with a and b: */
} /* while( In.good() ) */
It's just as the error says: You are calling the triangle constructor with three integers; however, triangle's only constructor takes points. Either overload the constructor to take points, make the arguments templates, or try casting your ints to points.