# include # include # include # include # include using namespace std; # include "owen.hpp" int main ( ); void timestamp ( ); //****************************************************************************80 int main ( ) //****************************************************************************80 // // Purpose: // // owen_test() tests owen(). // // Licensing: // // This code is distributed under the MIT license. // // Modified: // // 14 July 2017 // // Author: // // John Burkardt // { timestamp ( ); cout << "\n"; cout << "owen_test():\n"; cout << " C++ version\n"; cout << " Test owen().\n"; bivnor_test ( ); t_test ( ); znorm1_test ( ); znorm2_test ( ); // // Terminate. // cout << "\n"; cout << "owen_test():\n"; cout << " Normal end of execution.\n"; cout << "\n"; timestamp ( ); return 0; } //****************************************************************************80 void timestamp ( ) //****************************************************************************80 // // Purpose: // // TIMESTAMP prints the current YMDHMS date as a time stamp. // // Example: // // 31 May 2001 09:45:54 AM // // Licensing: // // This code is distributed under the MIT license. // // Modified: // // 24 September 2003 // // Author: // // John Burkardt // { # define TIME_SIZE 40 static char time_buffer[TIME_SIZE]; const struct tm *tm; time_t now; now = time ( NULL ); tm = localtime ( &now ); strftime ( time_buffer, TIME_SIZE, "%d %B %Y %I:%M:%S %p", tm ); cout << time_buffer << "\n"; return; # undef TIME_SIZE }