#include #include "standard.h" #include "window.h" void error(char *msg) { int w=0; char *str=msg; while(*str++) w++; w+=2; Window msgwin(40-w/2,8,w,3,YELLOW,RED,FRAME_222); msgwin.PrintAt(w/2-3,0,"ERROR"); msgwin.PrintAt(1,2,msg); msgwin.GetKey(); exit(1); }