outtext

This function is used to output a string at current location.

void outtext(LPCTSTR str);
void outtext(TCHAR c);

Parameters

str

A string to be output.

c

A character to be output.

Return Value

None

Remarks

This function is obsolete and is declared only in graphics.h.

This function is not recommended.

The function changes the current location to the end of the string. You can use this function continuously to keep the output strings continuous.

Examples

// Output string (Multi-Byte character set)
char s[] = "Hello World";
outtext(s);
// Output string (Unicode character set)
wchar_t s[] = L"Hello World";
outtext(s);
// Output string (Project character set)
TCHAR s[] = _T("Hello World");
outtext(s);
// Output characters (Multi-Byte character set)
char c = 'A';
outtext(c);
// Output value, first format the number output as a string (Multi-Byte character set)
char s[5];
sprintf(s, "%d", 1024);
outtext(s);
(贡献者:慢羊羊  编辑