三少爷

专注~~~

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年6月13日

摘要: http://social.msdn.microsoft.com/Forums/en-US/toolsforwinapps/thread/fec6f4bb-79a0-4036-a36f-4ebbfa2545440I get this error on a device I am using despite having uninstalled the app and only having used the device with one user.My current workaround is to hack the identity to be something different, 阅读全文
posted @ 2013-06-13 14:05 三少_爷 阅读(1574) 评论(0) 推荐(0) 编辑

2013年1月8日

摘要: http://www.cnblogs.com/yjmyzz/archive/2009/11/23/1608818.html 阅读全文
posted @ 2013-01-08 09:36 三少_爷 阅读(341) 评论(0) 推荐(0) 编辑

2013年1月7日

摘要: http://damianblog.com/2011/01/21/wp7-password-watermark/ 阅读全文
posted @ 2013-01-07 12:30 三少_爷 阅读(93) 评论(0) 推荐(0) 编辑

2012年8月25日

摘要: int fibonacci(int n){ if(n == 1) return 1; if( n == 2) return 1; else return fibonacci(n-1) + fibonacci(n-2);}int main() { printf("%d\n",fibonacci(10)); system("pause"); return 0;} 阅读全文
posted @ 2012-08-25 08:54 三少_爷 阅读(103) 评论(0) 推荐(0) 编辑

2012年3月29日

摘要: #include <stdio.h>#include <stdlib.h>#include <math.h>void main(){ int i,j; for(i = 2;i <=300;i++) { for(j = 2;j < i/2;j++) { if((i % j) == 0) break; } if(j ==i/2) { printf("%d\n",i); } } system("pause");} 阅读全文
posted @ 2012-03-29 16:09 三少_爷 阅读(95) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h>#include <stdlib.h>void main(){ int x,y,z; int d; for(int i = 100; i < 500;i++) { d = i; x = d%10; d = d/10; y = d%10; d = d/10; z = d; if( i == (x * x * x + y * y * y + z * z * z)) { printf("%d: %d %d %d\n",i,z,y,x); } } system("pause");} 阅读全文
posted @ 2012-03-29 15:29 三少_爷 阅读(119) 评论(0) 推荐(0) 编辑

2012年3月28日

摘要: #include <iostream>#include <vector>#include <list>using namespace std;class Shape{public: virtual void draw() = 0; virtual ~Shape(){}};class Circle:public Shape{public: void draw(){cout<<"Circle::draw\n";} ~Circle(){cout<<"~Circle\n";}};class Triang 阅读全文
posted @ 2012-03-28 14:45 三少_爷 阅读(144) 评论(0) 推荐(0) 编辑

2012年3月27日

摘要: #include <stdio.h>#include <stdlib.h>#define SUCCESS 1#define UNSUCCESS 0#define DUPLICATE -1#define NULLKEY -1#define OK 1#define EQ(x,y) ((x) = (y))#define LT(x,y) ((x) < (y))#define LE(x,y) ((x) <= (y))int hashSize[] = { 997,1999,11999};typedef struct{ int key; int data;}ElemTyp 阅读全文
posted @ 2012-03-27 20:24 三少_爷 阅读(168) 评论(0) 推荐(0) 编辑

摘要: #include<stdio.h>#include<stdlib.h>void bubbleSort(int * data,int n){ int i,j,k; for(i=0;i < n-1;i++) //n datas only need n-1 times sort; { for(j = 0; j < n-i-1;j++) //compare times of each sort is n-i-1; { if(data[j]>data[j+1]) { k = data[j]; data[j] = data[j+1]; data[j+1] = k; 阅读全文
posted @ 2012-03-27 20:22 三少_爷 阅读(125) 评论(0) 推荐(0) 编辑

2012年3月26日

摘要: #include<stdio.h>#include<stdlib.h>#define EQ(a,b) ((a) == (b))#define LT(a,b) ((a) < (b))#define LE(a,b) ((a) <= (b))typedef struct{ int key; int data;}SElemType;typedef struct{ SElemType *elem; int length;}SSTable;SSTable * create(int n){ SSTable *sst = (SSTable *)malloc(sizeof(S 阅读全文
posted @ 2012-03-26 20:56 三少_爷 阅读(159) 评论(0) 推荐(0) 编辑