| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 751 人关注过本帖
标题:菜鸟的初级问题 程序没调出
只看楼主 加入收藏
zfysleepy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-5-8
收藏
 问题点数:0 回复次数:8 
菜鸟的初级问题 程序没调出

using System; class Custom { public string a,b,c; public void Show(string a,string b,string c) { Console.WriteLine("input your ID:"); a=Console.ReadLine(); Console.WriteLine("input your password:"); b=Console.ReadLine(); Console.WriteLine("input your e-mail:"); c=Console.ReadLine(); }

public void Main() { Custom.Show(); Console.WriteLine("your information:"+"/n"+"your id:"+a); } }; 估计问题多多。。。 希望大家多指点~~~~~

搜索更多相关主题的帖子: 调出 初级 
2005-05-08 09:58
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 

using System; class Custom { public string a,b,c;

public void Show() { Console.WriteLine("input your ID:"); a=Console.ReadLine(); Console.WriteLine("input your password:"); b=Console.ReadLine(); Console.WriteLine("input your e-mail:"); c=Console.ReadLine(); }

public static void Main() { Custom cs=new Custom(); cs.Show(); Console.WriteLine("your information:"+"\n"+"your id:"+cs.a+"\n"+"your password:"+cs.b+"\n"+"your e-mail:"+cs.c);

}

}

[此贴子已经被作者于2005-5-8 10:27:56编辑过]


我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-08 10:19
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
不知道有没有把你的意思给改了。
你没说我也不知道

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-08 10:20
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
改好了

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-08 10:28
zfysleepy
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-5-8
收藏
得分:0 
不成啊。。。女侠~~~~

告诉我未定义入口点。。。
郁闷。。不过仍然谢谢~~已经改正不少问题了
2005-05-08 17:55
poem
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2005-5-8
收藏
得分:0 
看看Main()的第一个字母是不是大写的。

2005-05-08 18:15
xianglipp
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2005-5-8
收藏
得分:0 
既然是Class,就要实例化嘛~同意 Custom cs=new Custom()


至于main()的大小写,我想系统会给出明确警告的
2005-05-08 21:39
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
肯定是你那的毛病了。
我调试过才传上来的。

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-09 09:24
yushengou
Rank: 1
等 级:新手上路
帖 子:401
专家分:0
注 册:2005-3-30
收藏
得分:0 
还有不要叫我女侠。
偶是男滴

我是初学者,希望大家能多多帮助我 /bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif" border="0" onload="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onmouseover="if(this.width>screen.width*0.7) {this.resized=true; this.width=screen.width*0.7; this.style.cursor='hand'; this.alt='Click here to open new window\nCTRL+Mouse wheel to zoom in/out';}" onclick="if(!this.resized) {return true;} else {window.open('http://bbs./bbs/showimg.asp?BoardID=34&filename=2005-4/200542294030151.gif');}" onmousewheel="return imgzoom(this);" alt="" />
2005-05-09 09:24
快速回复:菜鸟的初级问题 程序没调出
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012925 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved