- A C library for programming cognitive experiments on Windows
/* __ / /_______________ ____ ___ / __/ ___/ ___/ __ \/ __ \/ _ \ / /_(__ ) /__/ /_/ / /_/ / __/ \__/____/\___/\____/ .___/\___/ /_/ text2.c using the printf format string */ #include <tscope.h> int main() { int a = 2; float b = 3.14; char c = 'C'; char d[] = "Tscope"; __int64 e = 1234567890; ts_printf_centre(0, 40, "an integer: %d", a); ts_printf_centre(0, 20, "a float: %f", b); ts_printf_centre(0, 0, "a character: %c", c); ts_printf_centre(0, -20, "a string: %s", d); ts_printf_centre(0, -40, "a 64 bit integer: %lld", e); ts_button(XMAX - 20, -YMAX + 20); return 0; } END_OF_MAIN();