printf

 

Description

Standard C printf function. Output will be the current output window, can be the Script Window, the output log or the labtalk console.

Syntax

int printf( LPCSTR lpcszFormat, ... )

Parameters

lpcszFormat
...

Return

Examples

EX1

void printf_ex1()
{
    double vv = cos(3.14);
    int nn = 45;
    string str = "Test";
    printf("For str(%s) and nn=%d, vv=%f\n",str, nn, vv);
}

Remark

See Also

string::Format

header to Include

origin.h

Reference