上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 61 下一页

2008年7月17日

C++ Exercises(十四)--解线性方程组

摘要: 帮一个朋友做的作业题,现在真是什么专业都要学编程了呀。。 //向量类 /**//* **author:phinecos **date:7/17/2008 */ class CVector { public: CVector(unsigned int d=0);//由向量的维数创建向量,向量元素值初始化为 CVector(unsigned int d, double*... 阅读全文

posted @ 2008-07-17 16:25 Phinecos(洞庭散人) 阅读(1090) 评论(2) 推荐(0) 编辑

2008年7月15日

基于jabber(XMPP)架设即时通信服务

摘要: Jabber 是著名的即时通讯服务服务器,它是一个自由开源软件,能让用户自己架即时通讯服务器,可以在Internet上应用,也可以在局域网中应用。 XMPP(可扩展消息处理现场协议)是基于可扩展标记语言(XML)的协议,它用于即时消息(IM)以及在线现场探测。它在促进服务器之间的准即时操作。这个协议可能最终允许因特网用户向因特网上的其他任何人发送即时消息,即使其操作系统和浏览器不同。X... 阅读全文

posted @ 2008-07-15 16:37 Phinecos(洞庭散人) 阅读(1729) 评论(0) 推荐(0) 编辑

《Extensible Messaging and Presence Protocol (XMPP): Core》阅读笔记(二)

摘要: 服务器到服务器SASL验证示例: Step 1: Server1 initiates stream to Server2: Step 2: Server2 responds with a stream tag sent to Server1: Step 3: Server2 informs Server1 of available authentication mec... 阅读全文

posted @ 2008-07-15 15:43 Phinecos(洞庭散人) 阅读(497) 评论(0) 推荐(0) 编辑

《Extensible Messaging and Presence Protocol (XMPP): Core》阅读笔记(一)

摘要: 文档链接:《Extensible Messaging and Presence Protocol (XMPP): Core》 客户和服务器之间端口为5222,服务器之间的端口为5269. 通信协议格式: |--------------------| | | |--------------------| | | | | | ... 阅读全文

posted @ 2008-07-15 14:45 Phinecos(洞庭散人) 阅读(894) 评论(0) 推荐(0) 编辑

2008年7月14日

基于Win32的多线程客户/服务器通信

摘要: 客户端: // Client.cpp : Defines the entry point for the application. // #include "stdafx.h" #include "resource.h" #include #pragma warning(disable:4700) #define MAX_LOADSTRING 100 // Global Variable... 阅读全文

posted @ 2008-07-14 22:38 Phinecos(洞庭散人) 阅读(1342) 评论(2) 推荐(0) 编辑

ExtJS 2.0入门指南

摘要: Normal 0 7.8 磅 0 2 false false false MicrosoftInternetExplorer4 开始! 我们将讲讲怎么使用ExtJS,来完成一些JavaScript常见的任务。如果你想自己试试,就应该先下IntroToExt2.zip,用来构建已下面的E... 阅读全文

posted @ 2008-07-14 19:54 Phinecos(洞庭散人) 阅读(1405) 评论(1) 推荐(0) 编辑

2008年7月11日

一个RSS阅读器类

摘要: class CFeedItem {//RSS条目 public: CFeedItem(); virtual ~CFeedItem(); public: CString m_strAuthor;//作者 CString m_strCategory;//类别 CString m_strDescription;//描... 阅读全文

posted @ 2008-07-11 14:25 Phinecos(洞庭散人) 阅读(845) 评论(2) 推荐(0) 编辑

2008年7月10日

服务定位器模式(C++实现)

摘要: Service Locator 模式背后的基本思想是:有一个对象(即服务定位器)知道如何获得一个应用程序所需的所有服务。也就是说,在我们的例子中,服务定位器应该有一个方法,用于获得一个我们所需要的服务对象实例。从而将客户端代码和实际的实现代码解耦,用户可以在相同的接口上注册不同的实现,从而可以不改变使用的代码就能改变实现的功能。我们也可以借助IOC的思想,利用XML配置文件来配置服务定位器可以定位的具体服务对象。 阅读全文

posted @ 2008-07-10 21:22 Phinecos(洞庭散人) 阅读(1421) 评论(1) 推荐(0) 编辑

2008年7月9日

Threads and Pipes in Console Apps

摘要: 原文链接:Threads and Pipes in Console Apps 控制台程序中的线程和管道 问题是:如何创建一个可能阻塞的程序,但在阻塞的时候能当数据可读的时候从stdour和stderr中接收数据。本文的目的是展示如何在控制台程序中使用多线程。 子进程程序: int _tmain(int argc, _TCHAR* argv[]) { for(int i = 0; ... 阅读全文

posted @ 2008-07-09 22:31 Phinecos(洞庭散人) 阅读(576) 评论(0) 推荐(0) 编辑

2008年7月8日

基于MFC的Direct3D程序设计

摘要: 原文链接:MFC D3D Application: Direct3D Tutorial Part I 作者这个MFC程序中第一个有趣的地方是让用于Direct3D绘制的窗口类从CWnd类和CXD3D类继承下来: class CD3DWnd : public CXD3D, public CWnd CD3DWnd类是用于窗口中控件(比如一个PictureBox)的基类,这个控件将提供普通C... 阅读全文

posted @ 2008-07-08 21:47 Phinecos(洞庭散人) 阅读(3641) 评论(4) 推荐(0) 编辑

上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 61 下一页

导航