2012年12月12日

测试mathjax

$x^2$ $$f_{X_1,\cdots, X_k}(x_1, \cdots, x_k)=\overbrace{\int_{-\infty}^{\infty} \cdots \int_{-infty}^{\infty}}^{n-k} f(x_1, \cdots, x_k, \xi_{k+1}, \cdots, \xi_{n})d \xi_{k+1} \cdots d\xi_{n}$$
$\cancel{R} $
#include "stdafx.h"
#include
void main()
{
    void hanoi(int n,char one,char two,char three);
    int m;
    printf("input the numbers of diskes:");
    scanf("%d",&m);
    printf("The steps to move %d diskes:\n",m);
    hanoi(m,'A','B','C');
    getch();
}
void hanoi(int n,char one,char two,char three)    //定义hanoi函数
{
    void move(char x,char y);
    if(n==1)
        move(one,three);
    else
    {
        hanoi(n-1,one,three,two);
        move(one,three);
        hanoi(n-1,two,one,three);
    }
}
void move(char x,char y)    //显示移动操作
{
    printf("%c-->%c\n",x,y);
}