以下是引用幻风幻云在2005-4-13 10:07:49的发言:
do
{
Console.writeline(请选择你要输入的是x还是y);
char c = Console.Readline();
if(c==x)
{代码}
else if(c==y)
{代码}
else
{你输入的不正确,请重新输入}
}
while(c==x||c==y) //这里改一下while(c
!=x||c!=y)
[此贴子已经被作者于2005-4-13 10:44:02编辑过]
我是初学者,希望大家能多多帮助我
/bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />