- 博客(2)
- 资源 (4)
- 收藏
- 关注
转载 改程序入口地址
#include using namespace std; #pragma comment(linker, "/entry:/"foo/"") //设置新的入口地址 int foo() { cout "hello world!" return 0; }
2008-11-12 10:50:00 549
转载 奇数阶幻方
#include #define N 3//幻方的阶数(是奇数),可以修改 int main(){for(int i=0,j=0;j++""),j=1,++i"%4d",((N-1)*3/2+j-i)%N*N+((N*5-1)/2-i-j)%N+1));return 0;}
2008-11-12 10:32:00 447
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人