The ChainCon Software (Release 0.03)
Functions | Variables
testshuffles.cpp File Reference

A simple program for showing the shuffles. More...

#include <vector>
#include "chomp/system/config.h"
#include "chomp/system/textfile.h"
#include "chomp/system/timeused.h"
#include "chomp/system/arg.h"
#include "chaincon/shuffles.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv [])
 The main procedure of the program. More...
 

Variables

const char * title
 The title of the program and licensing information. More...
 
const char * helpinfo
 Brief help information on the program's usage. More...
 

Detailed Description

A simple program for showing the shuffles.

Definition in file testshuffles.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

The main procedure of the program.

Returns: 0 = Ok, -1 = Error, 1 = Help displayed, 2 = Wrong arguments.

Definition at line 69 of file testshuffles.cpp.

References helpinfo, and title.

Variable Documentation

◆ helpinfo

const char* helpinfo
Initial value:
= "\
This program shows all the shuffles of required size.\n\
Call with:\n\
p q - the two positive integer numbers that define the shuffles.\n\
Switches and additional arguments:\n\
--log filename - save the output to a file (without progress indicators),\n\
--quiet - suppress data output to the screen (whcih can be still logged),\n\
--help - display this brief help information only and exit.\n\
For more information please consult the accompanying documentation\n\
or ask the program's author at http://www.PawelPilarczyk.com/."

Brief help information on the program's usage.

Definition at line 51 of file testshuffles.cpp.

Referenced by main().

◆ title

const char* title
Initial value:
= "\
Test Shuffles. August 12, 2013. (C) 1997-2014 by Pawel Pilarczyk.\n\
This is free software. No warranty. Consult 'license.txt' for details."

The title of the program and licensing information.

Definition at line 46 of file testshuffles.cpp.

Referenced by main().