Topic: 请教(请高手帮我找我的错!!!) |
Print this page |
1.请教(请高手帮我找我的错!!!) | Copy to clipboard |
Posted by: idk_bba Posted on: 2005-10-24 20:51 class god { public static void main(String args[]) { int x=2; swich(x) { case 1: System.out.println("excllent"); break; case 2: System.out.println("good"); break; case 3: System.out.println("pass"); break; case 4: System.out.println("fail"); break; default: System.out.println("error"); } } } |
2.Re:请教(请高手帮我找我的错!!!)[需要 ';' ] [Re: idk_bba] | Copy to clipboard |
Posted by: idk_bba Posted on: 2005-10-24 21:00 我用了";"的呀!!~~~ attachment {5788F01B-AD1B-45E0-888A-7BA5F7AABA2A}.BMP has been deleted. Don't use BMP format in the future; in fact, you don't have to use an image god.java:7: 需要 ';' swich(x) ^ 1 錯誤 |
3.Re:请教(请高手帮我找我的错!!!) [Re: idk_bba] | Copy to clipboard |
Posted by: q_yuan Posted on: 2005-10-25 10:59 "swich(x)" had been wrong,It is should write "switch(x)"! You should pay attention to write the right word! Studying should be hard and chariness! |
4.Re:请教(请高手帮我找我的错!!!) [Re: idk_bba] | Copy to clipboard |
Posted by: 明天 Posted on: 2005-10-25 14:32 int x=2; swich { 这么写 swich(x) |
5.Re:请教(请高手帮我找我的错!!!) [Re: idk_bba] | Copy to clipboard |
Posted by: 明天 Posted on: 2005-10-25 14:35 怎么回事 两个图标是怎么回事 我写的是括号啊 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |