类:
class tables(int tableid,int userid,string ip)
{
}
类实例:
tables1 = new table(1,10,"101.101.1.1");
tables2 = new table(1,11,"101.101.1.2");
tables3 = new table(1,12,"101.101.1.3");
tables4 = new table(2,13,"101.101.1.4");
tables5 = new table(2,14,"101.101.1.5");我现在收到tableid = 1 userid = 10的信息,
现在想回发给:tables = new table(1,10,"101.101.1.1");
tables = new table(1,11,"101.101.1.2");
tables = new table(1,12,"101.101.1.3");也就是tableid = 1 的这三个IP.
请问已知tableid = 1 userid = 10如知获取
userid为1的对应三个实例或IP
class tables(int tableid,int userid,string ip)
{
}
类实例:
tables1 = new table(1,10,"101.101.1.1");
tables2 = new table(1,11,"101.101.1.2");
tables3 = new table(1,12,"101.101.1.3");
tables4 = new table(2,13,"101.101.1.4");
tables5 = new table(2,14,"101.101.1.5");我现在收到tableid = 1 userid = 10的信息,
现在想回发给:tables = new table(1,10,"101.101.1.1");
tables = new table(1,11,"101.101.1.2");
tables = new table(1,12,"101.101.1.3");也就是tableid = 1 的这三个IP.
请问已知tableid = 1 userid = 10如知获取
userid为1的对应三个实例或IP
解决方案 »
- 用什么方法监控sql 2005 table数据有没有被吃掉?
- 求一正则表达式
- 紧急求问:我用CAsyncSocket做了一个通讯库,但是用在Form程序报错
- .Net 后台程序员 面试(很失败,我应届,一个没答上)
- 关于DataGridView,,多谢!
- How can i convert a 8 bytes array into datetime?
- 有人用过NUNIT做过C#的单元测试吗
- 请问在 Visual Studio 2012 里面的 C# 界面程序与 DLL 程序如何制作安装包?
- 如何打印出RichTextBox中的内容? 所见即所得?
- DataGrid的显示问题
- c# web中的return,想知道它的用法
- static
tables2 = new table(1,11,"101.101.1.2");
tables3 = new table(1,12,"101.101.1.3");
tables4 = new table(2,13,"101.101.1.4");
tables5 = new table(2,14,"101.101.1.5");这些tables做成数组然后去遍利
判断table1.TableID,table2.TableID,table3.TableID...的TableID是不是等于1
我觉得应该是这样
class tables(int tableid)
{
ArrayList users;
}class users(int userid)
{
tables inTable;
}
如果lz是要实现同房间的消息传送,遍历
消息发送给 user1.inTable.users组中不是自己的用户即可