zoukankan      html  css  js  c++  java
  • Word 2010 发布博文测试

    新建"博客文章"

    点击"文件-> 新建 -> 博客文章 -> 创建":

    新窗口的编辑区和不同模式的word有所不同,如果你还没有设置博客账号(初次使用,还会在弹出一个向导框):

    新建博客账户

    点击"立即注册"即可设置博客账号:


    (如果不小心将刚才弹出的向导框关闭了,可以点击编辑区上方,工具栏中的"管理账户"-> "新建",同样会弹出"新建博客账户"框。)

    这里"博客"下拉列表选择"其他"(根据具体博客API选择),点击"下一步",弹出"新建账户"对话框:

    可以看到,这里的API只有MetaWebLog(没有Windows Live Writer支持的API多),与博客园的API相同;
    "博客文章(URL)"填博客的API链接,比如我的是"
    http://www.cnblogs.com/xusw/services/metaweblog.aspx"(这一点和Windows Live Writer不同,Writer会自动检测),可以在博客登陆后;
    用户名和密码就是你的博客登陆账户和密码,不用多说,这里可以上"记住密码"(如果不勾,每次发布要单独输入密码),填好点"确定":

     

    有格式代码直接粘贴测试

    下面,我们选取同样一段代码,进行测试

    Eclipse

    void stringTest() {

        std::string str1("abcdefg");

     

        std::string str2 = str1;

     

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

     

        str2[0] = 'A';

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

    }

     

    Visual Studio

    void stringTest() {

        std::string str1("abcdefg");

     

        std::string str2 = str1;

     

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

     

        str2[0] = 'A';

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

    }

    本机预览结果

    为了能够对比发布前后效果,最后附上上面两端代码在word 2010下的截图:

    表格测试

    发布后:

    1

    2

    3

    4

    5

    6

    2

    3

    4

    5

    6

    7

    3

    4

    5

    6

    7

    8

    4

    5

    6

    7

    8

    9

    5

    6

    7

    8

    9

    10

    6

    7

    8

    9

    10

    11

    7

    8

    9

    10

    11

    12

    发布前:

     

    单格代码测试:

    void stringTest() {

        std::string str1("abcdefg");

     

        std::string str2 = str1;

     

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

     

        str2[0] = 'A';

        printf("str1: %s: %p ", str1.c_str(), str1.c_str());

        printf("str2: %s: %p ", str2.c_str(), str2.c_str());

    }

  • 相关阅读:
    统计 (Standard IO)
    存储过程中的错误处理
    簡單SQL存儲過程實例
    SQLSERVER存储过程基本语法
    SQL Server游标的使用【转】
    实现业务系统中的用户权限管理--实现篇
    实现业务系统中的用户权限管理--设计篇
    C#.net 微信公众账号接口开发
    jquery select radio
    asp.net Repeater使用例子,包括分页
  • 原文地址:https://www.cnblogs.com/xusw/p/3560013.html
Copyright © 2011-2022 走看看