c++
文章平均质量分 51
asdfasdfssdf
这个作者很懒,什么都没留下…
展开
-
c++欧几里得求最大公约数
#include using namespce std;int main(){int x,y;while(cin>>x>>y){cout} return 0;}int gcd(int x,int y){while(x!=y){if(x>y){x-=y;}else{y=y-x;}}return x;}原创 2013-11-12 11:32:17 · 720 阅读 · 0 评论 -
游戏网络通讯方式基于TCP
#include "stdafx.h"#include#include#include#include#include #pragma comment( lib, "ws2_32.lib" )#define PORT 2046#define BACKLOG 10#define TRUE 1int _tmain(int argc, _TCHAR* argv[]){ //原创 2014-10-25 14:28:54 · 853 阅读 · 0 评论 -
多线程TCP socket服务器
// ConsoleApplication3.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #pragma comment( lib, "ws2_32.lib" )#define PORT 2046#define BACKLOG 10#defi原创 2014-10-25 15:29:55 · 333 阅读 · 0 评论 -
关于C++解压和压缩
先去下载zip的问价,如果you'geng'g原创 2014-10-27 18:08:34 · 943 阅读 · 0 评论 -
mfc浏览器类的Ctrl+n屏蔽
我们可以直接在对话框中添加原创 2014-10-11 17:33:08 · 524 阅读 · 0 评论 -
框架窗口修改
看孙鑫的教程总结原创 2014-10-13 11:47:01 · 401 阅读 · 0 评论 -
宏定义C++单例模式
//通用的头文件// 宏定义一个类实现单例需要做的一些工作。// 每个单例类最好将其构造函数和虚析构函数设置为private#pragma once#define SINGLETON_DECLARE(theclass) \public: \ static theclass * SnglPtr()原创 2014-11-01 10:11:34 · 725 阅读 · 0 评论 -
函数指针
指针不仅仅可以指向变量的地址,原创 2014-11-01 10:04:27 · 254 阅读 · 0 评论 -
VC获取其他软件控件的内容
// GetWindowData.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "GetWindowData.h"#ifdef _DEBUG#define new DEBUG_NEW#endif// 唯一的应用程序对象//CString strTitle = "RGBLPR车牌识别系统 V4.0";//CString原创 2014-10-31 14:54:01 · 2279 阅读 · 0 评论