- 博客(3)
- 收藏
- 关注
原创 写个八皇后
#include using namespace std; typedef unsigned long long int UI; #define ID(I,J) (((I)<<3)+(J)) #define NR 8 template struct SetIJ{static const UI VAL=STACK|(UI(1)<<ID(I,J));}; template struct CheckI
2014-10-10 22:46:27 543
原创 写个汉诺塔程序
闲着无聊写写,可以down下来玩玩。按下任意键自动求解。 #include #include #define N 11 char A[N],B[N],C[N]; void draw(int n,char c){for(int i=0;i<n;i++)std::cout<<c;} void draw(char* AA,char i) {if(i>=strlen(AA))draw(N+1,'
2014-10-09 13:18:38 916
原创 写个2D刚体模拟器,麻雀虽小五脏俱全
#ifndef RIGID_SOLVER_2D_H #define RIGID_SOLVER_2D_H #include #include #include #include #include #include #include #include #include namespace RIGID_SOLVER_2D { //-----------------------
2014-02-09 23:31:12 1387 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人