This function is used to output a string at current location.
void outtext(LPCTSTR str);
void outtext(TCHAR c);
A string to be output.
A character to be output.
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.
// 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; sprintf(s, "%d", 1024); outtext(s);