Distribution generator
Here is a simple generator which can build some distributions with given properties.
Distributions generator (Compile with -lm)
Typical use might be:
./distributions -u -m 1 -M 10 -n 100 -s 500
Generates a distribution of 100 uniform random numbers between 1 and 10, such that the sum of numbers is 500.
./distributions -p -2.2 -m 1 -M 100 -n 200 -s 500
Idem with 200 numbers between 1 and 100 following a power law with exponent -
UC Library Extensions
UnderC comes with a pocket implementation of the standard C++ libraries, which is a reasonably faithful subset. This documentation describes those UnderC functions and classes which are not part of the C++ standard.
UC Library
Builtin functions:
Most of these are standard C functions, but there are a few unique to the UnderC system which give you runtime access to the Compiler. You may evaluate expressions, execute commands, Compile code, etc.
* Expands the text in expr using the UnderC preprocessor, putting the result
into buff.
void uc_macro_subst(const char* expr, char* buff, int buffsize)
* Executes a UC #-command, like #l or #help.
uc_cmd() expects the name of the command, _without_ the hash,
e.g. uc_cmd("l fred.cpp") or uc_cmd("help").
void uc_cmd(const char* cmd)
* Evaluates any C++ expression or statement will return non-zero if
unsuccessful.
Book: Windows Graphics Programming Win32 GDI and DirectDraw
Author: Feng Yuan
Publisher: Prentice Hall PTR
First Edition December 01, 2000
ISBN: 0-13-086985-6, 1234 pages
從Chinaitlab上下載后不能閱讀,這是重新Compile、整理后的版本
最大流,The programs are designed to run under BSD UNIX.
All programs read from the standard input and write to the standard
output. Run "make" to Compile the programs and generators.
File "list" lists the programs produced my "make".
Input files are in DIMACS format. See sample.input.
This tutorial will deal with getting input using Direct Input. All you will need to
run and/or Compile this tutorial is a keybaord, mouse, DirectX 8.0 or 9.0 and the
DirectX 8.0 or 9.0 SDK.