我的工程包括:struct.h create.c next.c main.cstruct.h#ifndef _STRUCT_H_#define _STRUCT_H_#include #include #include struct person{ int r; int s; ...
分类:
其他好文 时间:
2014-12-02 20:44:24
阅读次数:
226
整数划分问题是将一个正整数n拆成一组数连加并等于n的形式,且这组数中的最大加数不大于n。 如6的整数划分为 6 5 + 1 4 + 2, 4 + 1 + 1 3 + 3, 3 + 2 + 1, 3 + 1 + 1 + 1 2 + 2 + 2, 2 + 2 + 1 + 1, 2 + 1 + 1 + 1...
分类:
其他好文 时间:
2014-12-02 20:44:34
阅读次数:
268
1. 全局变量是如何初始化的//global varA a;int main(){ cout<<a<<endl; return 0; } 如上述例子,全局变量a是在main()函数之前便被初始化的,但是它是如何被初始化的呢?答案是所谓的静态初始化!2. C++对C进行封装的布局成本...
分类:
编程语言 时间:
2014-12-02 20:44:41
阅读次数:
140
前端优化再次被提起,高性能网站总是会得到用户的肯定,加载时间短,友好的界面交互,最少的资源占用,容易被搜索引擎抓取。 就自己可以接触到的范围,记录些优化的点点滴滴。 1.减少HTTP请求: 使用外部的css和js文件,这样便于压缩,便于合并。 使用CSS sprite,将小图片放于一张图片使用背景....
分类:
Web程序 时间:
2014-12-02 20:43:02
阅读次数:
207
已经看懂的方法:CFileDialog类封装了Windows常用的文件对话框。常用的文件对话框提供了一种简单的与Windows标准相一致的文件打开和文件存盘对话框功能。CFileDialog的语法:CFileDialog(BOOL bOpenFileDialog, LPCTSTR lpszDefEx...
分类:
编程语言 时间:
2014-12-02 20:41:56
阅读次数:
443
1相关介绍功能描述RegOpenKeyEx()函数功能描述:打开一个指定的注册表键原型1234567LONGRegOpenKeyEx(HKEYhKey,// 需要打开的主键的名称LPCTSTRlpSubKey,//需要打开的子键的名称DWORDulOptions,// 保留,设为0REGSAM sa...
分类:
其他好文 时间:
2014-12-02 20:41:41
阅读次数:
192
学习vamei的Java教程1.包如果包没有放在当前工作路径下,我们在使用包时,需要通知Java。比如,我们将包放在/home/vamei/javapackage中,这样Human.class位于/home/vamei/javapackage/com/vamei/society/Human.clas...
分类:
编程语言 时间:
2014-12-02 20:43:59
阅读次数:
194
1VB声明Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As String, l...
分类:
编程语言 时间:
2014-12-02 20:43:20
阅读次数:
158
原理:一、在控件的后台代码中, 添加布尔类型的属性CanFocus二、在控件的构造函数中, 注册Enter事件的处理方法. 并在处理方法中,根据CanFocus属性的值来决定是否可以丢失焦点, 如果可以则调用Windows消息的发送类.三、在处理方法中,调用User32.dll类库, 发送windo...
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:
其他好文 时间:
2014-12-02 20:43:38
阅读次数:
190
在我们创建一个新的.h 和 .m文件时,我们会看到.h:@implementation TestViewController- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loadin...
分类:
其他好文 时间:
2014-12-02 20:42:38
阅读次数:
122
fromhttp://blog.csdn.net/frankiewang008/article/details/12832239//多字节编码转为UTF8编码boolMBToUTF8(vector&pu8,constchar*pmb,int32mLen){//convertanMBCSstringt...
分类:
其他好文 时间:
2014-12-02 20:42:16
阅读次数:
298
fromhttp://www.cnblogs.com/lancidie/default.html?page=1序言:转型手游,问题比想象要复杂。一些问题是研发阶段就能预见的,但是有些问题上线后才发现远超出我们的想象。从端游转型做手游变化远没有想象简单 可能和公司内很多手游研发团队一样,我们也是从传....
分类:
其他好文 时间:
2014-12-02 20:42:10
阅读次数:
207
电商接口 京东获取单个商品价格接口: http://p.3.cn/prices/mgets?skuIds=J_商品 ID&type=1 ps:商品 ID 这么获取:http://item.jd.com/954086.html 物流接口 快递接口: http://www.kuaidi1...
分类:
其他好文 时间:
2014-12-02 20:42:06
阅读次数:
249
void OnApplicationFocus( bool isFocus ) {// Debug.Log("--------OnApplicationPause---" + isFocus); if( isFocus ) { ...
分类:
移动开发 时间:
2014-12-02 20:42:34
阅读次数:
153
C正确初始化方式无论是int 还是 char 初始化方式都是一样(指定初始值或者用指针指向所开辟的内存)int num[] = {1,22,333}; int *p = num; int *num2 = new int[3]; char c[] = {'aaa','a'}; char *cp = c...
分类:
其他好文 时间:
2014-12-02 20:40:55
阅读次数:
126
一、新建一个类库,命名为:DAO二、新建接口:IRepositoryusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace Repository{ public in...
分类:
Web程序 时间:
2014-12-02 20:41:06
阅读次数:
235