/*
#include <stdio.h>
#include <stdlib.h>
int main()
{
printf("Hello world!\n");
return 0;
}
*/
/*
#include<stdio.h>
int main()
{
int
}
*/
/*
#include<stdio.h>
#include<string.h>
#include<windows.h>
#include<math.h>
#include<time.h>
#define LEFT 75
#define RIGHT 77
#define UP 72
#define DOWN 80
void gotoxy(int x,int y)
{
COORD pos= {x,y};
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
int main()
{
int x,y,n,k;
char input;
gotoxy(42,5);
printf("--------------------------------");
gotoxy(53,6);
printf("Up and Down");
gotoxy(55,8);
printf ("GAME");
gotoxy(53,10);
printf ("--Start--");
gotoxy(42,9);
printf("--------------------------------");
gotoxy(45,10);
printf ("선택하려면 'k'를 누르시오.");
gotoxy(42,13);
printf("! 시작한다.");
gotoxy(42,15);
printf ("! 시작하지 않는다.");
k=0;
for(;;)
{
Sleep(1);
if(kbhit())
{
input = getch();
if(k==0)
{
if(input=='K' || input=='k')
{
system ("cls");
gotoxy (51,13);
printf ("Loading...");
gotoxy (51,15);
printf ("Please wait...");
Sleep (3000);
system ("cls");
break;
}
}
else
{
if(input=='K' || input=='k')
{
system ("cls");
gotoxy (50,13);
printf ("The game is over");
Sleep (2000);
system ("cls");
break;
}
}
}
if(input== UP || input== 'W' || input== 'w')
{
if(k==1)
{
k=0;
}
}
else if(input== DOWN || input=='S' || input=='s')
{
if(k==0)
{
k=1;
}
}
if(k==0)
{
gotoxy(35,13);
printf (" ");
gotoxy(35,13);
printf (">>");
}
else
{
gotoxy(35,15);
printf (" ");
gotoxy(35,15);
printf (">>");
}
}
}
*/
/*
#include<stdio.h>
#include<string.h>
int main()
{
char a[31], stack[31];
int i,j,n;
gets(a);
for(i=0; i<n; i++)
{
if(a[i]=='['&&a[i+1]==']')
{
}
}
}
*/