2011年3月3日 星期四

2011/03/04 java 相加

1.檢查
2.開始撰寫

3.大小寫 數字

4.輸出


5.字串

6.
7.string to int 
8.結果
class Test20110304
{
public static void main(String[] args)
{
int x,y,z,u,v;
x=Integer.parseInt(args[0]) ;
y=Integer.parseInt(args[1]) ;
u=Integer.parseInt(args[2]) ;
v=Integer.parseInt(args[3]) ;
z=x*u+y*v;
System.out.println(z);

}
}

沒有留言:

張貼留言

Use google protocol buffers + QT +CMAKE

Protocol Buffers https://developers.google.com/protocol-buffers/ Serialize and ParseFrom https://www.jianshu....