-
C# pop3 邮件接收程序
private void Connect_Click(object sender, System.EventArgs e) { //将光标置为等待状态 Cursor cr = Cursor.Current; Cursor.Current = Cursors.WaitCursor; String a ,b,c; //用110端口新建POP3服务器连接 Server = new TcpClient(PopServer.Text, 110); Status.Items.Clear(); try { //初始化 NetStrm = Server.GetStream(); RdStrm = new StreamReader(Server.GetStream()); Status.Items.Add(RdStrm.ReadLine()); //登录服务器过程 Data = "USER " Username.Text CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); Status.Items.Add(RdStrm.ReadLine()); Data = "PASS " Password.Text CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); Status.Items.Add(RdStrm.ReadLine()); //向服务器发送STAT命令,从而取得邮箱的相关信息:邮件数量和大小 Data = "STAT" CRLF; szData = System.Text.Encoding.ASCII.GetBytes(Data.ToCharArray()); NetStrm.Write(szData, 0, szData.Length); //Status.Items.Add(RdStrm.ReadLine()); //改变按钮的状态 Connect.Enabled = false; Disconnect.Enabled = true; Retrieve.Enabled = true; //将光标置回原来状态 Cursor.Current = cr; } catch (InvalidOperationException err) { Status.Items.Add("Error: " err.ToString()); } }
- 2014-11-02下载
- 积分:1
-
PPT-and-Procedure-of-NNT
国防科技大的神经网络课程的课件及相关演示程序。(The courseware and related procedures demonstration of neural network of
National University of Defense Technology .)
- 2012-05-04 11:23:36下载
- 积分:1
-
ShuffledFrogLeapingAlgorithm
SFLA算法是解决组合性优化问题的算法。它是基于集合类方法的启发式研究,这种SFLA初始化于一群虚拟集合青蛙,在池塘中跳跃,搜寻最优的食物地点。青蛙们可以被看作是具有思维的的主体。一种思维可以被看作是一个思想的集合或是文化的进化。每一种思维都是由一系列策略构成。在这种策略进化期间,青蛙的思维也在发生改变,导致了他们在面向目标时方位的改变,这种思维的变化或改变的发生,正是因为青蛙受到其他更好思想的影响。(SFLA algorithm to solve portfolio optimization problems and algorithms. It is based on the collections of the heuristic research method, which is initialized to a group of SFLA virtual collection of frogs, jumping in the pond, searching for the optimal location of food. Frogs can be seen as the main body with thinking. Can be seen as a way of thinking is a set of ideological or cultural evolution. Each type of thinking is constituted by a series of strategies. Period in the evolution of this strategy, the frog is also a change of thinking, leading to goal-oriented when they change direction, this way of thinking of the change or changes occur, because frogs are better ideas.)
- 2009-05-08 21:38:03下载
- 积分:1
-
51736041RandomForest
随机森林改进工具箱,内含训练预测等函数,简单易懂(Random forest toolbox, containing training prediction function, easy to understand.)
- 2018-06-29 15:23:45下载
- 积分:1
-
matlablistings
马尔科夫链蒙特卡洛算法简单实例,模式识别,参数识别(mcmc,bayesian,Based on markov chain monte carlo method is implemented in the matlab program)
- 2017-11-15 10:40:20下载
- 积分:1
-
socket 网络通信 控制台程序 测试通过
socket 网络通信 控制台程序 测试通过
#include
#include
#pragma comment(lib, "ws2_32.lib")
void main()
{
WORD wVersionRequested;
WSADATA wsaData;//WSAata用来存储系统传回的关于WinSocket的资料。
int err;
wVersionRequested = MAKEWORD( 1, 1 );
err = WSAStartup( wVersionRequested, &wsaData );
if ( err != 0 ) {
return;
}
if ( LOBYTE( wsaData.wVersion ) != 1 ||HIBYTE( wsaData.wVersion ) != 1 )
{
WSACleanup( );
return;
}
SOCKET sockClient=socket(AF_INET,SOCK_STREAM,0);// AF_INET ..tcp连接
//初始化连接与端口
- 2023-07-26 07:35:05下载
- 积分:1
-
Multi-layer-neural-net
多层神经网络设计和仿真 应用与反步控制系统设计中(multi-neruo networks)
- 2012-06-02 15:46:47下载
- 积分:1
-
神经网络PID复合智能控制参数自整定研究
一篇论文分享,:针对具有时滞一阶非最小相位系统的被控对象, 提出了一种基于神经网络的 PID 复合智能控制设计方案, 推导出复合 PID 控制器控制参数的整定方法.考虑到被控对象的不确定性、慢时变等特点, 以神经网络元构造基于自动化复合 PID 控制器, 解决了基于自动化复合 PID 控制参数在线调整的问题, 使复合 PID 控制器适用范围更广泛.对闭环控制系统模拟结果表明, 该系统控制参数整定方法简单, 具有非常好的控制效果.
- 2023-08-13 09:15:03下载
- 积分:1
-
ann-windspeed-forecast-master
使用深度学习算法ANN对风速数据进行预测,最后的预测效果很好(Using ANN algorithm to predict wind speed)
- 2021-02-11 13:39:51下载
- 积分:1
-
AprioriDataMine
数据挖掘中关联规则的经典算法Apriori算法源代码,可以连接到数据库(Data Mining Association Rules classical algorithm Apriori algorithm source code, can be connected to the database)
- 2007-01-25 11:31:59下载
- 积分:1