传入一个参数去给函数,返回四个值我这里该怎么整?
public string aa(string bb)//这里是可以接收一个传进参数的,这样写对吗?
{
string a="1";
string b="2";
string b="3";
string d="4";
return..?? //请问1:这里怎样返回四个值?
}
请问2:怎样调用上面的函数?
string xxx=aa(???)最后可以分别得到
string new_a=1;
string new_b=2;
string new_c=3;
string new_d=4;谢谢
public string aa(string bb)//这里是可以接收一个传进参数的,这样写对吗?
{
string a="1";
string b="2";
string b="3";
string d="4";
return..?? //请问1:这里怎样返回四个值?
}
请问2:怎样调用上面的函数?
string xxx=aa(???)最后可以分别得到
string new_a=1;
string new_b=2;
string new_c=3;
string new_d=4;谢谢
解决方案 »
- 阅读器关闭时Read的尝试无效
- 一个网上购物系统大概要多少钱呀
- 请思归,孟子等高手帮忙: VB.NET装载带 <% 的XML文档, 急, 在线等, 问题解决立即结贴
- datagrid中每一行使用 checkbox,当checkbox值发生改变时,立即提交到数据库
- 用户信息注册页面、用户信息修改页面一般是如何做的啊,请高手指教
- 如何在DataGrid中单击某一行然后获得该行的数据??
- 什么时候开的?
- 这个错误是怎么回事???运行VS.NET 2003怎么会出现这个错误呢?我服务器上运行 *.aspx 的东西很正常啊...
- ExecuteReader: CommandText 属性尚未初始化
- 谁有asp.net方面书籍下载地址?
- 帮忙看一句代码的对错 c#+javascript
- 请教关于水晶报表中超长文章分页的问题
{
public string outTest(string bb, out string b, out string c, out string d)
{
string a="1";
string b="2";
string c="3";
string d="4";
return a;
}
static void main()
{
string strPath;
string strp;
outTest(strp,out string bb, out string cc, out string dd)
Response.write(strpath);
Response.write(bb);
Response.write(cc);
Response.write(dd);
}
}
{
a="1";
b="2";
c="3";
d="4";
}