alibad

See an implementation for SUM (sum), AVG (average), MIN (minimum), MAX (maximum), STDEV (standard deviation), and VAR (variance) here:

[url]http://mycodelog.com/2010/03/27/c-aggregates/[/url]

alibad

You can use the printw function. Check out this [URL="http://mycodelog.com/2010/03/23/printw/"]post[/URL].

Usage is as simple as calling printf:

[CODE]printf( "char: %c, decimal: %d, float: %f, string: %s", 'X', 1618, 1.618, "text");
printw(x, y, z, "char: %c, decimal: %d, float: %f, string: %s", 'X', 1618, 1.618, "text");[/CODE]