屏幕分辨率基础1.术语和概念术语说明备注Screen size(屏幕尺寸)指的是手机实际的物理尺寸,比如常用的2.8英寸,3.2英寸,3.5英寸,3.7英寸摩托罗拉milestone手机是3.7英寸Aspect Ratio(宽高比率)指的是实际的物理尺寸宽高比率,分为long和nolongMiles...
分类:
移动开发 时间:
2014-07-18 23:21:30
阅读次数:
319
【C++自我精讲】基础系列五 隐式转换和显示转换0 前言1)C++的类型转换分为两种,一种为隐式转换,另一种为显式转换。2)C++中应该尽量不要使用转换,尽量使用显式转换来代替隐式转换。1 隐式转换定义:隐式转换是系统跟据程序的需要而自动转换的。1)C++类型(char,int,float,long...
分类:
编程语言 时间:
2014-07-18 22:05:58
阅读次数:
240
题解:正难则反,从总数中减去全部相邻不相同的数目就是答案,n*(n-1)^(m-1):第一个房间有n中染色方案,剩下m-1个房间均只有n-1种染色方案,用总数减就是答案。#include const int mod=100003; typedef long long LL; LL n,m; LL p...
分类:
其他好文 时间:
2014-07-18 20:20:40
阅读次数:
212
在调用一个函数的过程中又出现直接或间接地调用 该函数本身,称为函数的递归(recursive)调用.包含递归调用的函数称为递归函数.在实现递归时,在时间和空间上的开销比较大求n! 1 #include 2 using namespace std; 3 4 long func(int n); 5 .....
分类:
编程语言 时间:
2014-07-18 20:06:46
阅读次数:
206
扩展欧几里得#include#include#include#include#define maxn 3000009#define ll long longusing namespace std;void gcd(ll a,ll b,ll& d,ll& x,ll &y){ if(!b){d=a...
分类:
其他好文 时间:
2014-07-18 19:39:25
阅读次数:
312
#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std;typedef long ...
分类:
其他好文 时间:
2014-07-18 19:22:03
阅读次数:
157
直接搜索,简单题;#include#include#include#include#include#define maxn 505#define ll long longusing namespace std;int map[maxn][maxn];int dir[4][2]={{0,1},{1,0...
分类:
其他好文 时间:
2014-07-18 17:05:58
阅读次数:
208
在VS2010中使用MFC,使用UNICODE调用TRACE,输出_CrtDbgReport: String too long or IO Error可尝试使用OutputDebugString函数
分类:
数据库 时间:
2014-07-18 09:21:53
阅读次数:
413
1、建立进行读写文件的java类//写文件public static void WriteFile(String filename,long counter) throws IOException {PrintWriter out=new PrintWriter(new FileWriter(fil...
分类:
Web程序 时间:
2014-07-18 00:38:17
阅读次数:
238
约定: 1) 下面的测试题中,认为所有必须的头文件都已经正确的包含了 2)数据类型 char 一个字节 1 byte int 两个字节 2 byte (16位系统,认为整型是2个字节) long int 四个字节 4 byte float 四个字节4 byet double 八个字节 8 by...
分类:
其他好文 时间:
2014-07-17 17:36:13
阅读次数:
310