1. 下载安装 Android Studio,(可查看《Android Studio安装及环境配置笔记》)
2. 运行时的欢迎界面如下:
3. 启动完成后,就是一个引导页面,可以新建项目,可以导入项目。
4. 下面让我们新建一个Helloword吧。我们选择New project,然后出现的界面就是这样的。
5. 再下一步还是有eclipse上面的创建项目中...
分类:
移动平台 时间:
2015-07-22 16:14:39
收藏:
0 评论:
0 赞:
0 阅读:
257
//给一个无向图 , n个节点,m条边
//每个节点为起点的概率相同
//问每个节点走d步后不经过这个节点的概率
//不经过这个节点的概率等于去掉该节点的图中走了d步到其他节点的和
//dp[i][j] 为走了i步到达j个节点的概率
//dp[i][j] = segma(dp[i-1][v])/vec[j].size()
#include
#include
#include
#...
分类:
其他 时间:
2015-07-22 16:13:29
收藏:
0 评论:
0 赞:
0 阅读:
148
在读《TCP/IP协议详解》里看到的这张图:整理出来分享:
欢迎访问新博客社区:ACoder社区:
http://acoder.cc...
分类:
其他 时间:
2015-07-22 16:13:20
收藏:
0 评论:
0 赞:
0 阅读:
223
业务需求比如一个社交软件,比如像腾讯的qq。可以进行群聊天(gid),也可以单人聊天。
数据量按月增加需要按月进行数据库拆分。
比如按照2015年进行12个月拆分,同时可以配合gid进行水平拆分,也可以利用mysql分区。
mycat...
分类:
数据库技术 时间:
2015-07-22 16:12:59
收藏:
0 评论:
0 赞:
0 阅读:
453
题意:
给出c种颜色和s个珠子;
将珠子染色后穿成一个环;
旋转和翻转相同的视为同构;
求方案数;
题解:
polya计数的裸题;
定义m为颜色数,c(Pi)为Pi这个置换的循环节个数;
那么根据定理,答案L为;
然后只要求出各个置换的循环节就好了;
题中允许两种置换,先考虑旋转;
旋转有n种置换方式,分别是转0,转360/n,转2*360/n.......
分类:
其他 时间:
2015-07-22 16:12:39
收藏:
0 评论:
0 赞:
0 阅读:
238
上一篇文章我有讲到self.与_的区别,往往和这个问题相伴随的是我困惑的问题是"@property与@synthesize的区别"
@property的用法
@interface ViewController ()
{
NSArray *arr2;
}
@property(nonatomic,retain)NSArray *arr;
@end
@...
分类:
其他 时间:
2015-07-22 16:12:29
收藏:
0 评论:
0 赞:
0 阅读:
146
Unidirectional TSP
Time Limit:3000MS Memory Limit:0KB 64bit IO Format:%lld & %llu
Submit Status Practice UVA 116
Appoint description:Description
Download as PDFBackgroundProblems that requi...
分类:
其他 时间:
2015-07-22 16:12:20
收藏:
0 评论:
0 赞:
0 阅读:
525
Highcharts中数据的作用...
分类:
其他 时间:
2015-07-22 16:12:19
收藏:
0 评论:
0 赞:
0 阅读:
120
函数头后加const,表示的是常成员函数,常成员函数理解为是一个“只读”函数,它既不能更改数据成员的值,也不能调用那些能引起数据成员值变化的成员函数,只能调用常成员函数。...
分类:
其他 时间:
2015-07-22 16:11:09
收藏:
0 评论:
0 赞:
0 阅读:
139
1、echarts使图标能自适应浏览器窗口变化
window.onresize = function () {
myChart.resize(); //使第一个图表适应
myChart_pieMain.resize(); // 使第二个图表适应
}
2、map地图中经纬度与平面坐标转换
var arr = [117,36.4];
ale...
分类:
其他 时间:
2015-07-22 16:10:59
收藏:
0 评论:
0 赞:
0 阅读:
948
Array类
提供创建、操作、搜索和排序数组的方法,因而在公共语言运行时中用作所有数组的基类。
命名控件: System
程序集:mscorlib
语法:public abstract class Array:ICloneable, IList, ICollection, IEnumerable, IStructuralComparable, IStructuraEquatab...
分类:
Windows开发 时间:
2015-07-22 16:10:50
收藏:
0 评论:
0 赞:
0 阅读:
238
效果图:
代码部分main_activity.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:...
分类:
移动平台 时间:
2015-07-22 16:10:29
收藏:
0 评论:
0 赞:
0 阅读:
334
OO’s Sequence
Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)
Total Submission(s): 888 Accepted Submission(s): 335
Problem Description
OO has got a...
分类:
其他 时间:
2015-07-22 16:10:19
收藏:
0 评论:
0 赞:
0 阅读:
182
友情题目链接http://acm.hdu.edu.cn/showproblem.php?pid=3388
#include
#include
#include
#include
using namespace std;
typedef long long LL;
const int N=1000005;
const LL INF=(LL)1<<62;
bool prime[...
分类:
其他 时间:
2015-07-22 16:10:09
收藏:
0 评论:
0 赞:
0 阅读:
179
POJ 1185 炮兵阵地 (状压dp 经典中的经典)...
分类:
其他 时间:
2015-07-22 16:09:59
收藏:
0 评论:
0 赞:
0 阅读:
141
package com.infofuse.util;
import java.util.MissingResourceException;
import java.util.ResourceBundle;
public class PropertiesUtils {
private static final String propertiesFile = "parameter";...
分类:
编程语言 时间:
2015-07-22 16:09:39
收藏:
0 评论:
0 赞:
0 阅读:
105
一直遇到这个问题,今天终于找到了解决方法.
在我们的项目中经常遇到横竖屏切换,而又有某个特定的界面必须是特定的显示方式(横屏或竖屏).这就需要如下的处理了.
强制转成横屏:
if ([[UIDevice currentDevice] respondsToSelector:@selector(setOrientation:)]) {
SEL selector =...
分类:
移动平台 时间:
2015-07-22 16:09:29
收藏:
0 评论:
0 赞:
0 阅读:
169
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the f...
分类:
其他 时间:
2015-07-22 16:09:19
收藏:
0 评论:
0 赞:
0 阅读:
160
login_required无效用django的restful写成的请求处理,使用auth模块中装饰器进行访问限制,出现request无user属性的错误.from django.views.generic import View
from django.contrib.auth.decorators import login_requiredclass TaskQueue(View):
'...
分类:
其他 时间:
2015-07-22 16:09:09
收藏:
0 评论:
0 赞:
0 阅读:
158
第一步:在Info.plist中设置UIViewControllerBasedStatusBarAppearance
为NO
第二步:在viewDidLoad中加一句
UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent;
这样就可以把默认的黑色改为白色。...
分类:
编程语言 时间:
2015-07-22 16:08:59
收藏:
0 评论:
0 赞:
0 阅读:
150