yncon(Windows)

R}hvvgYN𕷂AL[ƁAERRORLEVELɕԂ܂B
YꂽꍇF0
NESCꂽꍇF1

Eob`t@Cł̎gp
@echo off
yncon
if ERRORLEVEL 1 GOTO SKIP
echo "Yꂽ"
:SKIP

E\[X(C)
#define getkey(KY) GetKeyState(KY)&0x80
#include "windows.h"
#include "stdio.h"

void main(void){
 printf("proceed(Y/N)?");
 while(1){
  if(getkey(VK_ESCAPE)){exit(1);break;}
  if(getkey('Y')){exit(0);break;}
  if(getkey('N')){exit(1);break;}
//  if(getkey(VK_RETURN)){exit(0);break;}
  }}

yncon_ent́AENTERL[0Ԃ悤ɂ̂łB

-----------------
N.I
http://ni.10-59.com
-----------------
