See More

#pragma once // this algorithm project-related status code, // this algorithm project-related status code, #ifndef STATUS_H #define STATUS_H #include #include // status code #define TRUE 1 #define FALSE 0 #define YES 1 #define NO 0 #define OK 1 #define ERROR 0 #define SUCCESS 1 #define UNSUCCESS 0 #define INFEASIBLE -1 #ifndef _MATH_H_ #define OVERFLOW -2 #define UNDERFLOW -3 #endif #ifndef NULL #define NULL ((void*)0) #endif // status recognization type typedef int Status; // macros function // function pause for a while #define Wait(x)\ {\ double _Loop_Num_;\ for(_Loop_Num_ = 0.01; _Loop_Num_ <= 100000.0 * x; _Loop_Num_ += 0.01)\ ;\ }// ÉèÖÃÒ»¸ö¿ÕÑ­»· // Enter ¼ü¼ÌÐø½øÐÐ #define PressEnter\ {\ fflush(stdin);\ printf("Press Enter..."); \ getchar();\ fflush(stdin);\ } #endif