摘要:
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, 阅读全文
摘要:
http://www.cnblogs.com/yjmyzz/archive/2009/11/23/1608818.html 阅读全文
摘要:
http://damianblog.com/2011/01/21/wp7-password-watermark/ 阅读全文
摘要:
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;} 阅读全文
摘要:
#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");} 阅读全文
摘要:
#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");} 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#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; 阅读全文
摘要:
#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 阅读全文