装的是wp-syntaxhighlighter,下面看看显示效果吧~
以卸载wp-syntaxhighlighter,现在用的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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
/* * File: keyword.cpp * Author: xuehaiyisu * * Created on 2011年11月7日 */ #include <iostream> #include <fstream> #include <string> #include <cstdlib> using namespace std; int main() { cout<<"请先建立一个已 key.txt 命名的文件,内容为关键字,建议每行一个关键字。"<<endl<<endl; string str;//关键字 string data="pre_common_relatedlink";//数据表名,默认为pre_common_relatedlink cout<<"输入数据表名?(Y/N) n数据表名默认为 pre_common_relatedlink ,如果您的表前缀是pre_,请选择 N:"; string choice; getline(cin,choice); if(choice=="Y") { cout<<"请输入数据表:"; cin>>data; } string domain;//域名 cout<<"请输入您的域名(格式如 www.tecbbs.com,不带http://);回车继续:"; cin>>domain; string link1="http://"; string link2="/search.php?mod=my&source=adlink&q="; string tmp; ifstream in; ofstream out; in.open("key.txt"); out.open("change.txt"); if (!in) { cout << "Error opening file"; exit(1); } int i=1;//关键字编号 while(in>>str) { tmp=str; str=link1+domain+link2+tmp; out<<"INSERT INTO `"<<data<<"` VALUES("<<i<<", '"<<tmp<<"', '"; out<<str<<"', 15);"<<endl; i++; } in.close(); out.close(); system("pause"); } |
博客能带货吗
插件已卸载