using System;

using System;

题目
using System;
class Point
{
x05public int x,y;
x05public Point()
x05{
x05x05x = 0;
x05x05y = 0;
x05}
x05public Point(int x,int y)
x05{
x05x05this.x=x;this.y=y;//
x05}
x05public override string ToString()
x05{
x05x05return(String.Format("({0},{1})",x,y));
x05}
}
class MainClass
{
x05static void Main()
x05{
x05x05Point p1 = new Point();
x05x05Point p2 = new Point(5,3);
x05x05Console.WriteLine("Point 1的坐标为{0}",p1);
x05x05Console.WriteLine("Point 2的坐标为{0}",p2);
x05}
}
答案
    using System;class Point//创建一个Point类{public int x, y;//声明xy两个工友字段public Point() //无参数构造函数{x = 0;//在无参数构造...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.