From 35924f6055312b74dfb3b57a935e6534ef5169bc Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Fri, 11 Oct 2013 21:59:36 +0000 Subject: [PATCH] disable printing --- .../discrete/examples/schedulingExample.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/gtsam_unstable/discrete/examples/schedulingExample.cpp b/gtsam_unstable/discrete/examples/schedulingExample.cpp index 260209e29..0679dcdfa 100644 --- a/gtsam_unstable/discrete/examples/schedulingExample.cpp +++ b/gtsam_unstable/discrete/examples/schedulingExample.cpp @@ -53,16 +53,10 @@ void addStudent(Scheduler& s, size_t i) { } /* ************************************************************************* */ Scheduler largeExample(size_t nrStudents = 7) { - char cCurrentPath[FILENAME_MAX]; - - if (!getcwd(cCurrentPath, sizeof(cCurrentPath))) - { - return errno; - } - - cCurrentPath[sizeof(cCurrentPath) - 1] = '\0'; /* not really required */ - - printf ("The current working directory is %s", cCurrentPath); +// char cCurrentPath[FILENAME_MAX]; +// if (!getcwd(cCurrentPath, sizeof(cCurrentPath))) return errno; +// cCurrentPath[sizeof(cCurrentPath) - 1] = '\0'; /* not really required */ +// printf ("The current working directory is %s", cCurrentPath); string path("../../../gtsam_unstable/discrete/examples/"); Scheduler s(nrStudents, path + "Doodle.csv");