==== main() 함수 테스트용 소스 ====
void main()
{
TQueue<int> queueINT(5);
printf("check : %s\n",(queueINT.Push(1))?"True":"False");
printf("check : %s\n",(queueINT.Push(2))?"True":"False");
printf("check : %s\n",(queueINT.Push(3))?"True":"False");
printf("check : %s\n",(queueINT.Push(4))?"True":"False");
printf("check : %s\n",(queueINT.Push(5))?"True":"False");
printf("check : %s\n",(queueINT.Push(6))?"True":"False");
printf("check : %s\n",(queueINT.Push(7))?"True":"False");
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
printf("check : %s\n",(queueINT.Push(8))?"True":"False");
printf("check : %s\n",(queueINT.Push(9))?"True":"False");
printf("%d\n",queueINT.Pop());
printf("%d\n",queueINT.Pop());
TQueue<char> queueCHAR(5);
printf("check : %s\n",(queueCHAR.Push('a'))?"True":"False");
printf("check : %s\n",(queueCHAR.Push('b'))?"True":"False");
printf("check : %s\n",(queueCHAR.Push('c'))?"True":"False");
printf("check : %s\n",(queueCHAR.Push('d'))?"True":"False");
printf("check : %s\n",(queueCHAR.Push('e'))?"True":"False");
printf("check : %s\n",(queueCHAR.Push('f'))?"True":"False");
printf("%c\n",queueCHAR.Pop());
printf("%c\n",queueCHAR.Pop());
printf("%c\n",queueCHAR.Pop());
printf("%c\n",queueCHAR.Pop());
printf("%c\n",queueCHAR.Pop());
TQueue<float> queueFLOAT(5);
printf("check : %s\n",(queueFLOAT.Push(1.0f))?"True":"False");
printf("check : %s\n",(queueFLOAT.Push(2.0f))?"True":"False");
printf("check : %s\n",(queueFLOAT.Push(3.0f))?"True":"False");
printf("check : %s\n",(queueFLOAT.Push(4.0f))?"True":"False");
printf("check : %s\n",(queueFLOAT.Push(5.0f))?"True":"False");
printf("check : %s\n",(queueFLOAT.Push(6.0f))?"True":"False");
printf("%.1f\n",queueFLOAT.Pop());
printf("%.1f\n",queueFLOAT.Pop());
printf("%.1f\n",queueFLOAT.Pop());
printf("%.1f\n",queueFLOAT.Pop());
printf("%.1f\n",queueFLOAT.Pop());
TQueue<double> queueDOUBLE(5);
printf("check : %s\n",(queueDOUBLE.Push(1.1f))?"True":"False");
printf("check : %s\n",(queueDOUBLE.Push(2.2f))?"True":"False");
printf("check : %s\n",(queueDOUBLE.Push(3.3f))?"True":"False");
printf("check : %s\n",(queueDOUBLE.Push(4.4f))?"True":"False");
printf("check : %s\n",(queueDOUBLE.Push(5.5f))?"True":"False");
printf("check : %s\n",(queueDOUBLE.Push(6.6f))?"True":"False");
printf("%g\n",queueDOUBLE.Pop());
printf("%g\n",queueDOUBLE.Pop());
printf("%g\n",queueDOUBLE.Pop());
printf("%g\n",queueDOUBLE.Pop());
printf("%g\n",queueDOUBLE.Pop());
system("PAUSE");
}