Ihavenothing 大家好!COS论坛在2014年11月4日进行了系统升级,帖子和用户资料都保持不变,但在发帖格式上略有变化。 发帖之后的5分钟内可以对自己的帖子进行编辑,发帖间隔为1分钟。 行内数学公式用 \(a^2 + b^2 = c^2\),效果为 \(a^2 + b^2 = c^2\)。 行间数学公式用 $$f(x) = x + \log(x)$$,效果为 $$f(x) = x + \log(x)$$ 行内代码放在一对反引号(波浪线“~”下面的字符)中,效果为print("Hello")。 整段代码放在[[code]和[/code]]中,效果为 f = function(dat) { ggplot(dat, aes(x = x, y = y)) + geom_point() } int main() { printf("Hello, %d\n", 2 + 3); return 0; } 更多的用法参见帖子http://cos.name/cn/topic/407952/。 网页和图片用[[url]http://cos.name/cn[/url]]和[[img]http://imgs.xkcd.com/comics/correlation.png[/img]],效果为 http://cos.name/cn
Ihavenothing [未知用户] 是的,新站的RSS地址就是在分版块的后面加上rss或feed,比如R语言的地址就是 http://cos.name/cn/forum/software/r-language/rss 或者 http://cos.name/cn/forum/software/r-language/feed
Ihavenothing [未知用户] 我也觉得很奇怪,其他地方应该都没有问题的,像是这样: x = matrix(rbinom(338*21,1,.5),338); ind = combn(21,10); tt = sapply(1:choose(21,10), function(i) { sum(rowSums(x[,ind[,i]])==10)/388 }) 我只能用HTML临时把你的回复改了下。
doctorjxd 测试C++代码 #include <iostream> int main() { using std; cout << "hello, word" << endl; return 0; } 效果太好了,终于把误隐藏头文件的bug去掉了!