// main.cpp #include #include "func.h" #include "test.h" using namespace std; int main() { setlocale(LC_ALL, "Rus"); test_distance(); // Оставшиеся тесты необходимо реализовать самостоятельно //test_sort(); //test_checkTriangleType(); //test_square(); //test_distanceTo(); //test_full_func(); cout << "Демонстрация работы" << endl; double x1, y1, x2, y2; cout << "Введите координаты первой точки:" << endl; cin >> x1 >> y1; cout << "Введите координаты второй точки:" << endl; cin >> x2 >> y2; cout << "Расстояние между точками:" << endl; cout << distance(x1, y1, x2, y2) << endl; //Продемонстрировать работу остальных функций system("pause"); return 0; }