wp-codebox test
2009年12月14日
| 标签: test, WP-CodeBox, 代码高亮
一是用代码高亮插件,页面就要多载入好几个JS,YSlow的评分马上降低到60几分。。挺郁闷
WP-CodeBox今天刚刚更新,原来显示有问题,现在偶尔也胡乱截断了代码。还是用WP-Syntax了,主题推荐,另外显示好看点,反正我不想要上面那个功能条
仅作测试
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #include <iostream.h> void BubbleSort(int* pData,int Count) { int iTemp; for(int i=1;i<Count;i++) { for(int j=Count-1;j>=i;j--) { if(pData[j]<pData[j-1]) { iTemp = pData[j-1]; pData[j-1] = pData[j]; pData[j] = iTemp; } } } } void main() { int data[] = {10,9,8,7,6,5,4}; BubbleSort(data,7); for (int i=0;i<7;i++) cout<<data[i]<<" "; cout<<"\n"; } |
声明:本站文章如无特别说明均为原创,转载请注明转自:wp-codebox test

换了N个代码高亮了。。。
@neeke 还是简单的好