[lag] 原來 WordPress.com 可以放彩色的程式碼

像這樣


#include 

int main (void)
{
	int a, b;

	while (scanf ("%d %d", &a, &b) == 2)
	{
		printf ("The GCD of %d and %d is ", a, b);

		int tmp = a % b;
		while (tmp != 0)
		{
			a = b;
			b = tmp;
			tmp = a % b;
		}

		printf ("%d\n", b);
	}
	return 0;
}

密技沒有!就只是這樣:

這裡放程式碼

 

支援的語言呢,就寫在 WordPress.com 的官方說明頁裡面

我 lag  好久了 = =

關於 Chitsaou Yorkxin
From Taiwan, a National Taiwan Normal University undergraduate student major in Computer Science. You may call me Chitsaou :)

One Response to [lag] 原來 WordPress.com 可以放彩色的程式碼

  1. sp 說道:

    請問整個wordpress檔案 可以放到自己的網站自己的server嗎

發表迴響

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>