我从网上得到了这个XWindows“hello,world”。我在更复杂的程序中有我不理解的行为,但这里的简单程序也显示了它:#include#include#include#includeintmain(void){Display*d;Windoww;XEvente;constchar*msg="Hello,World!";ints;intx;d=XOpenDisplay(NULL);if(d==NULL){fprintf(stderr,"Cannotopendisplay\n");exit(1);}s=DefaultScreen(d);w=XCreateSimpleWindow(d