- 博客(14)
- 资源 (5)
- 收藏
- 关注
原创 Git通过管理员远程添加项目和用户
gitosis.conf[group 项目名字]writable = 项目名字members = 用户1 用户2执行命令git add .git commit -am "add member 用户 and project 项目名字"git pushmkdir 项目cd 项目git inittouch hello.txt
2014-11-06 14:08:22
1020
原创 宏定义C++单例模式
//通用的头文件// 宏定义一个类实现单例需要做的一些工作。// 每个单例类最好将其构造函数和虚析构函数设置为private#pragma once#define SINGLETON_DECLARE(theclass) \public: \ static theclass * SnglPtr()
2014-11-01 10:11:34
763
原创 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
2353
原创 多线程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
359
原创 游戏网络通讯方式基于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
882
原创 error RC2108: expected numerical dialog constant
vs2013无故的报错我最终解决方案把资源文件这行 CONTROL IDB_IMAGE_SEARCH, IDC_STATIC_IMAGE, 5, 17, 96, 192, SS_REALSIZEIMAGE | NOT WS_GROUP改成下面的 CONTROL IDB_
2014-09-27 09:39:46
1204
原创 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
758
原创 字符中小写改为大写
#include "stdafx.h"#include "iostream"using namespace std;char up(char ch){ if('a' return ch-32; else return ch;}int _tmain(int argc, _TCHAR* argv[]){ char str[255]; co
2012-11-16 09:49:18
387
原创 c语言冒泡法
// 排序.cpp : 定义控制台应用程序的入口点。//#include "stdio.h"void rank(int a[],int n){int i,t=0;for(i=0;ifor(int j=0;jif(a[j]>a[j+1])t=a[j],a[j]=a[j+1],a[j+1]=t;}void main(){int s[5]={};
2012-11-16 09:26:39
497
windows压缩文件的操作
2014-10-27
员工管理软件
2012-12-24
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人