Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language string and plastic combination output problem?
C language string and plastic combination output problem?
Wchar_t *pw = L "Hello, Windows 98";

int wlen = wcs len(pw); wchar _ t a[200];

Wsprintfw (length of a, l "'%s' is %d ",pw, wlen); MessageBoxW(NULL,a,L“hello msg”,0); char * p = " XXXXXXXXXX

int len = strlen(p); char b[ 100];

WsprintfA(b, "%s is %d", p, len); MessageBoxA(NULL,b,“HelloMsg”,0); It is strange that I can't compile the above two paragraphs together. Although there are mistakes, it would be nice if each paragraph were compiled and executed separately. Why?