21 lines
316 B
C++
Executable File
21 lines
316 B
C++
Executable File
// **********
|
|
// ERRORS.CPP
|
|
// **********
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <iostream.h>
|
|
#include "errors.h"
|
|
|
|
void Error(const char *msg, ...) {
|
|
char buffer[150];
|
|
va_list ap;
|
|
va_start(ap, msg);
|
|
vsprintf(buffer, msg, ap);
|
|
cout<<endl<<buffer<<endl;
|
|
va_end(ap);
|
|
exit(-1);
|
|
}
|
|
|
|
|