-
maopao
实现冒泡排序的例程,c++6.0编写,来自c语言学习(This program can reality bubbling sort.)
- 2018-03-11 16:01:35下载
- 积分:1
-
自动登录qq空间,获取最近访客列表.
自动登录qq空间,获取最近访客列表.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace WindowsFormsApplication1{ public partial class Form1 : Form { Timer terAutologin = new Timer(); public Form1() { InitializeComponent(); terAutologin.Enabled = true; terAutologin.Interval = 3 * 1000; terAutologin.Tick = ter_Tick; } void ter_Tick(object sender, EventArgs e) { if(wb1.Document==null) { return; } HtmlElement dialog_content_1 = wb1.Document.GetElementById("dialog_content_1"); if (dialog_content_1 == null) { return; } var frame = wb1.Document.Window.Frames[0]; if (frame==null) { return; } if (frame.Document==null) { return; } // iframe HtmlElement u = frame.Document.GetElementById("u"); u.InnerText = "171586098"; HtmlElement p = frame.Document.GetElementById("p"); p.InnerText = "*************"; p.SetAttribute("value", "********"); HtmlElement login_button = frame.Document.GetElementById("login_button"); login_button.InvokeMember("click"); terAutologin.Stop(); } private void Form1_Load(object sender, EventArgs e) { ssl1.Text = string.Empty; txtUrl.Text = "http://user.qzone.qq.com/14371939"; wb1.ScriptErrorsSuppressed = true; wb1.Navigate("http://user.qzone.qq.com/14371939/main"); } private void btnGO_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(txtUrl.Text)) { wb1.Navigate(txtUrl.Text); ssl1.Text = txtUrl.Text " Navigated"; } } private void wb1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { System.Diagnostics.Trace.WriteLine(e.Url.ToString()); // http://g.cnc.qzone.qq.com/cgi-bin/friendshow/cgi_get_visitor_simple?uin=4371939&type=1&mask=3&rd=0.7801240284461528&_=1397644130601&g_tk=9281770 ssl1.Text = e.Url.ToString() " Completed"; tryRead(); } private void btnTest_Click(object sender, EventArgs e) { tryRead(); } private void tryRead() { if (wb1.Document == null) { return; } HtmlElement pagediv = wb1.Document.GetElementById("visitor_list_page_con"); if (pagediv==null) { return; } //若分页内容存在,则表示已经加载过了. if(pagediv.Children.Count>0) { handlerAbc(null,null); return; } //模拟点击 "最近访客" var aa = pagediv.Parent.Parent.FirstChild.Children[2]; aa.InvokeMember("click"); //给访问列表的容器绑定一个事件...回调时就能获取到. HtmlElement guestlist = pagediv.Parent.FirstChild; //ul.RaiseEvent guestlist.AttachEventHandler("onpropertychange", new EventHandler(handlerAbc)); } private void handlerAbc(Object sender, EventArgs e) { HtmlElement div = wb1.Document.GetElementById("visitor_list_page_con"); HtmlElement guestlist = div.Parent.FirstChild; if (guestlist.InnerHtml.IndexOf("QZONE.FrontPage.showLoginBox") > -1) { HtmlElement alogin = guestlist.GetElementsByTagName("a")[0]; alogin.InvokeMember("click"); // 使用定时器.检测登录窗口的出现.. terAutologin.Start(); return; } else { System.Text.StringBuilder sb = new StringBuilder(); // 取回里面的内容? foreach (HtmlElement li in guestlist.Children) { string qq = li.GetAttribute("uin"); string visitname = li.Children[1].FirstChild.InnerText; string visittime = li.Children[1].Children[1].InnerText; sb.AppendLine(qq visitname visittime); } MessageBox.Show(sb.ToString()); } } }}
- 2014-04-18下载
- 积分:1
-
player
用c#编写的音乐播放器。可播放mp3、wma等格式,带显示lrc歌词模式。(With c# written in music player. Can play mp3, wma and other formats, with lyrics display lrc mode.)
- 2010-01-31 19:32:35下载
- 积分:1
-
dianziqin
基于C51的电子琴设计,有一个现成的音乐,支持14个不同的音调(C51-based design of the organ, there is a ready-made music, support the 14 different pitch)
- 2009-04-20 17:04:15下载
- 积分:1
-
jiaoshi-
教师业绩考核系统,C++语言编程,可连接数据库(Teacher performance evaluation system, C++ programming language, can connect to the database)
- 2020-07-04 09:40:01下载
- 积分:1
-
国密SM3算法C源码
国密SM3算法C源码
适用于商用密码应用中的数字签名和验证、消息认证码的生成与验证以及随机数的生成,可满足多种密码应用的安全需求。同时,本文本还可为安全产品生产商提供产品和技术的标准定位以及标准化的参考,提高安全产品的可信性与互操作性。
- 2022-01-22 02:50:39下载
- 积分:1
-
tqwUFO
tqwUFO,这是本人同样参考《beginning game programming》编写的小示例程序。内含所有源码和debug文件。(tqwUFO beginning game programming)
- 2010-07-28 12:50:53下载
- 积分:1
-
USB
8051USB加密狗驱动程序,用于USB设备与主机的连接(8051USB dongle driver for the USB connection to the host device)
- 2013-06-17 11:21:40下载
- 积分:1
-
仓库管理系统Qt
仓库管理系统是基于Qt开发,可以学习和参考,适合练练手,对大家有所帮助,基于没有没有没有MYSQL数据进行开发
- 2022-05-23 14:10:11下载
- 积分:1
-
基于BP网络的印刷体数字识别
说明: 基于BP网络的印刷体数字识别技术的完整案例,对图像处理及其BP神经网络付有完整的程序,并可以允许,同时还附有大量的测试图片(Digit recognition technology integrity cases, right image processing and neural network BP to pay the full process and allows, but also with a large number of test pictures)
- 2005-12-31 15:22:27下载
- 积分:1