摘要:
原始地址:XMPPFrameWork IOS 开发(四)消息//收到消息 - (void)xmppStream:(XMPPStream *)sender didReceiveMessage:(XMPPMessage *)message{ // NSLog(@"message = %@", message); //消息的内容 NSString *msg = [[message elementForName:@"body"] stringValue]; //消息发送者 NSString *from = [[message attributeF...
阅读全文
posted @ 2013-08-14 19:12
风言枫语
阅读(265)
推荐(0)
摘要:
main.c#include "stm32f4_discovery.h"#include #define LED1_ON GPIO_SetBits(GPIOD,GPIO_Pin_12)#define LED1_OFF GPIO_ResetBits(GPIOD,GPIO_Pin_12)#define LED2_ON GPIO_SetBits(GPIOD,GPIO_Pin_13)#define LED2_OFF GPIO_ResetBits(GPIOD,GPIO_Pin_13)extern uint8_t NbrOfDataToTransfer;extern uint8_t N
阅读全文
posted @ 2013-08-14 19:10
风言枫语
阅读(739)
推荐(0)
摘要:
l 对象的this引用作用: this关键字就是让类中一个方法,访问该类中的另一个方法或属性。 1、构造器中引用该构造器正在初始化的对象。 2、在方法中引用调用该方法的对象(哪个对象调用的方法,this就代表那个对象)。this在一个方法中使用this.方法,this作用就是引用该类中另一个方法中的对象(对象通常在main方法中)。this也可以省略不写,效果是一样的。但是对于static修饰的方法中就用类调用方法,不能用this。静态成员(带static的)不能访问非静态成员。 语法:this.属性this.方法 重载构造器中调用被包含的构造器初始化代码语法:this(属性...) 例子:t
阅读全文
posted @ 2013-08-14 19:08
风言枫语
阅读(326)
推荐(0)
摘要:
题目链接 此题考查代码能力,还有就是格式问题,也要考虑N==1的情况 #include #include using namespace std;int f[100][100];int main(){ char a[2]; int n,tt,t,i,j; tt=0; while(scanf("%d %c %c",&n,&a[0],&a[1])!=EOF) { getchar(); if(tt) printf("\n"); t=1; if((n+1)/2%2==0) t=0; for(i=0;i<...
阅读全文
posted @ 2013-08-14 19:06
风言枫语
阅读(260)
推荐(0)
摘要:
一:脚本编辑器Web部件新的脚本编辑器Web部件表现为插入标签页下的Ribbon中的“嵌入的代码”,可以使用户在SharePoint网站页面中添加HTML或Javascript或Jquery代码。更多信息二:磁贴结构SharePoint 2013引入了一个新的磁贴结构,被添加到默认的工作组网站的首页。这些磁贴表现为显示网站上的重要任务。磁贴Web部件对于推广网站首页的重要链接非常有用。你可以通过一个新的列表模版叫做推广链接创建一个自定义的磁贴组。更多信息三:文档库同步(文档离线工作)随着一个新的同步按钮,用户现在可以将任意的文档库同步到本地甚至是SkyDrive库。文档库同步后,用户可以在同步
阅读全文
posted @ 2013-08-14 19:04
风言枫语
阅读(124)
推荐(0)
摘要:
下载了eclipse3.7,发现这个版本默认的字体不是Courier New,后来通过eclipse->windows->preferences->general->apperance->colors and fonts->basic->text fonts设置,发现没有这个字体(能找到这个字体的直接设置就行),后来网上找了资料,可以直接修改配置先在eclipse安装目录找到\plugins\org.eclipse.jface_3.7.0.I20110522-1430.jar(不同eclipse版本,文件名不同,不过都是类似的)然后用rar打开,接着依
阅读全文
posted @ 2013-08-14 19:01
风言枫语
阅读(181)
推荐(0)
摘要:
Jungle RoadsTime Limit:1000MSMemory Limit:10000KTotal Submissions:17586Accepted:7937Description The Head Elder of the tropical island of Lagrishan has a problem. A burst of foreign aid money was spent on extra roads between villages some years ago. But the jungle overtakes roads relentlessly, so the
阅读全文
posted @ 2013-08-14 18:59
风言枫语
阅读(147)
推荐(0)
摘要:
Main.javaimport java.net.HttpURLConnection;import java.net.URL;public class Main { private static Messages messages = new Messages(); private static CallBack callback = new CallBack() { @Override public void schedule(Messages messages) { long totalDownloadSize = messages.getTotalDownloadSize()...
阅读全文
posted @ 2013-08-14 18:57
风言枫语
阅读(179)
推荐(0)
摘要:
原题直通车:HDU 4528 小明系列故事——捉迷藏分析: 标记时加两种状态就行. 代码:#include#include#include#includeusing namespace std;const int maxn=101;char f[maxn][maxn];int dx[]={0,0,-1,1};int dy[]={1,-1,0,0};bool vis[maxn][maxn][2][2];int n,m,k,ei,ej,di,dj,si,sj;struct node{ int x,y,time,p,q;}rt,ne;void work(node &rt){ bool u..
阅读全文
posted @ 2013-08-14 18:55
风言枫语
阅读(229)
推荐(0)
摘要:
NetworkingTime Limit:1000MSMemory Limit:10000KTotal Submissions:5417Accepted:2915Description You are assigned to design network connections between certain points in a wide area. You are given a set of points in the area, and a set of possible routes for the cables that may connect pairs of points.
阅读全文
posted @ 2013-08-14 18:52
风言枫语
阅读(189)
推荐(0)