From 24a9d3634a71a68524dc24a24b5cbbce4bdf0fcb Mon Sep 17 00:00:00 2001 From: azzaare Date: Tue, 16 Jan 2018 17:25:11 +0900 Subject: [PATCH] Turned off the comments in the upperhull related functions --- examples/upperhull/include/point2D.hpp | 2 +- examples/upperhull/include/upperHull.hpp | 34 ++++++++++++------------ 2 files changed, 18 insertions(+), 18 deletions(-) mode change 100644 => 100755 examples/upperhull/include/point2D.hpp diff --git a/examples/upperhull/include/point2D.hpp b/examples/upperhull/include/point2D.hpp old mode 100644 new mode 100755 index 5182e0d..3f8cec1 --- a/examples/upperhull/include/point2D.hpp +++ b/examples/upperhull/include/point2D.hpp @@ -93,7 +93,7 @@ int Point2D::orientation(Point2D p1, Point2D p2, Point2D p3) { int val = (p2.y - p1.y) * (p3.x - p2.x) - (p2.x - p1.x) * (p3.y - p2.y); - std::cout<<"ORIENTATION BETWEEN "< 0) ? 1 : 2)< 0) ? 1 : 2)<::readInput(std::vector line) { template std::shared_ptr UpperHull::initStack() { - std::cout << "going to read two values " << std::endl; + // std::cout << "going to read two values " << std::endl; // first, read and push two values StackAlgo::readPush(2); - std::cout << "done reading two values " << std::endl; + // std::cout << "done reading two values " << std::endl; // then initialize context (which in this case is NULL everything std::shared_ptr context; @@ -85,8 +85,8 @@ template std::shared_ptr UpperHull::initStack() { template bool UpperHull::popCondition(Point2D last) { Point2D minus1, minus2; total++; - std::cout << std::endl << last << " <<<< pop condition enter " << std::endl; - StackAlgo::println(); + // std::cout << std::endl << last << " <<<< pop condition enter " << std::endl; + // StackAlgo::println(); // read the two previous elements minus1 = StackAlgo::top(1).getData(); @@ -96,41 +96,41 @@ template bool UpperHull::popCondition(Point2D last) { minus2 = StackAlgo::top(2).getData(); - std::cout << last << " <<<< pop condition read two before " << minus2 - << minus1 << std::endl; + // std::cout << last << " <<<< pop condition read two before " << minus2 + // << minus1 << std::endl; if (Point2D::orientation(minus2, minus1, last) == 1) { pops++; - std::cout << last - << " <<<< " - " pop condition returning true " - << pops / total << " tot " << total << std::endl; + // std::cout << last + // << " <<<< " + // " pop condition returning true " + // << pops / total << " tot " << total << std::endl; return true; } - std::cout << last << " " - " <<<< pop condition returning false " - << pops / total << " tot " << total << std::endl; + // std::cout << last << " " + // " <<<< pop condition returning false " + // << pops / total << " tot " << total << std::endl; return false; } template void UpperHull::prePop(Point2D data) {} template void UpperHull::postPop(Point2D data, Data elt) { - std::cout << elt.getData() << " <<<< (post-)Pop!" << std::endl; + // std::cout << elt.getData() << " <<<< (post-)Pop!" << std::endl; } template void UpperHull::noPop(Point2D data) {} template bool UpperHull::pushCondition(Point2D data) { - std::cout << data << " <<<< push condition returning true " << std::endl; + // std::cout << data << " <<<< push condition returning true " << std::endl; return true; } template void UpperHull::prePush(Data elt) {} template void UpperHull::postPush(Data elt) { - std::cout << "UpperHullStackAlgo::pushAction Nothing to see here " - << elt.getData() << std::endl; + // std::cout << "UpperHullStackAlgo::pushAction Nothing to see here " + // << elt.getData() << std::endl; } template void UpperHull::noPush(Point2D data) {} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy