///////////////////////////////////////////////////////////////////// // trace.cpp - simple display utility functions to trace // // ver 1.0 operation of code in other modules // // // // Lanaguage: Visual C++, ver 6.0, SP 5.0 // // Platform: Dell Dimension 8100, Win2000, SP 2.0 // // Application: general utility routines, Spring 2002 // // Author: Jim Fawcett, CST 2-187, Syracuse University, // // (315) 443-3948, jfawcett@twcny.rr.com // ///////////////////////////////////////////////////////////////////// //----< test stub >-------------------------------------------------- #ifdef TEST_TRACE #include "trace.h" void main(int argc, char *argv[]) { title("Testing Trace Utility Functions"); title("this is a subtitle",'-',std::cout); string test = toString(3.1415927); test = "this is PI: " + test; trace(test.c_str()); trace("another disclosure of PI: ",3.1415927,cout); trace("\n\n"); } #endif