#c菜鸟问题
using System;
<br>using System.Collections.Generic;
<br>using System.Text;
<br>
<br>namespace ConsoleApplication21
<br>{
<br> class Program
<br> {
<br> static void Main(string[] args)
<br> {
<br> Person hz = new Person();
<br> Console.WriteLine(hz.Qiuhun());
<br> Console.WriteLine(hz.Qiuhun(50000));
<br> Console.WriteLine(hz.Qiuhun(50000, "钻戒"));
<br> }
<br> }
<br> class Person
<br> {
<br> public string _name;
<br> public int _age;
<br> public string _language;
<br> public bool Qiuhun()
<br> {
<br> Console.WriteLine("could you marray to me?");
<br> return false;
<br> }
<br> public bool Qiuhun(int mm)
<br> {
<br> Console.WriteLine("送" + mm);
<br> Console.WriteLine("could you marray to me?");
<br> return false;
<br> }
<br>
<br> public bool Qiuhun(int mm, string present)
<br> {
<br> Console.WriteLine("送" + mm);
<br> Console.WriteLine("送" + present);
<br> Console.WriteLine("could you marray to me?");
<br> return true;
<br> }
<br> }
<br>}
<br>执行不了!应该要怎么改一下噢?

- 这是一篇来自百度知道的问题
|