Markdown语法初见

2017-11-26  本文已影响0人  冬季卧雪

一级标题

二级标题

四级标题

列表

有序列表

  1. 有序列表项1
  2. 有序2

链接

百度

图片

image

文字引用

aaa
bbb

斜体

嗷嗷嗷

粗体

粗粗粗

代码引用

单行引用

#include <stdio.h>

多行引用

void lcs_length(char* x, char* y) {
    for(int i = 1; i <= m; i++)
        c[i][0] = 0;
    for(int j = 0; j <= n; j++)
        c[0][j] = 0;
    for(int i = 1; i <= m; i++)
    for(int j = 1; j <= n; j++) {
        if( (x[i-1] == y[j-1] && (x[i-1] != '#') ) || (x[i-1] == '?' && y[j-1] != '#') || (y[j-1] == '?' && x[i-1] != '#') ) {
            c[i][j] = c[i-1][j-1] + 1;
            b[i][j] = 1;
        }
        else if(c[i-1][j] >= c[i][j-1]) {
            c[i][j] = c[i-1][j];
            b[i][j] = 2;
        }
        else {
            c[i][j] = c[i][j-1];
            b[i][j] = 3;
        }
    }
}

表格

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
上一篇 下一篇

猜你喜欢

热点阅读