Topic: 如下程序存在编译错,但不知道哪里错? |
Print this page |
1.如下程序存在编译错,但不知道哪里错? | Copy to clipboard |
Posted by: 笨笨猪 Posted on: 2009-05-13 15:20 public class MyC{ int x = 1; int y = 43,z; z = x*y; float f = 0.12f; System.out.println("f = " +f); } |
2.Re:如下程序存在编译错,但不知道哪里错? [Re: 笨笨猪] | Copy to clipboard |
Posted by: linux_china Posted on: 2009-05-13 16:06 你居然连hello world的程序都不愿意看,晕倒啦! 我真的不知道是否该回复你。 public class MyC { public static void main(String[] args) { int x = 1; int y = 43, z; z = x * y; float f = 0.12f; System.out.println("f = " + f); } } |
3.Re:如下程序存在编译错,但不知道哪里错? [Re: 笨笨猪] | Copy to clipboard |
Posted by: 笨笨猪 Posted on: 2009-05-14 10:04 感谢热心帮扶! |
4.Re:如下程序存在编译错,但不知道哪里错? [Re: 笨笨猪] | Copy to clipboard |
Posted by: mw3943 Posted on: 2009-07-04 13:09 缺少了main()函数- -~ |
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 |