Linux安全网 - Linux操作系统_Linux 命令_Linux教程_Linux黑客

会员投稿 投稿指南 本期推荐:
搜索:
您的位置: Linux安全网 > Linux编程 > » 正文

Windows_Programing_English_To_Chinese_1_MSVC_C运行库(31)

来源: 未知 分享至:
    /* uses _chdir() function to verify that a given directory exists */

    printf(\"n\");

    printf(\"Change directory........n\");

    if(_chdir(path1))

        printf(\"Unable to locate the directory: %sn\", path1);

    else

        system(\"dir *.log /a\");

    printf(\"n\");

    return 0;

}

 

A sample output:

 

Running sample programs using Visual C++ Express Edition 2005, 2008 and Visual C++ 2005/Visual Studio 2008

利用 Visual C++ Express Edition 2005, 2008 and Visual C++ 2005/Visual Studio 2008来测试实例程序

For the above mentioned IDEs, you need to set the Character Set to Not Set else you need to change all the types

 in the programs to Unicode. The following Figures show the project setting for the character set used in the project.

对于上面列举的IDE环境,你需要将字符集设定为Not Set,同样你还需要将程序变换成Unicode字符集类型。 

下面的图向你展示如何进行设置项目属性。

 

 

Visual C++ Express Edition 2005

 


 

Visual C++ 2005 of the Visual Studio 2005



 



Tags:
分享至:
最新图文资讯
1 2 3 4 5 6
验证码:点击我更换图片 理智评论文明上网,拒绝恶意谩骂 用户名:
关于我们 - 联系我们 - 广告服务 - 友情链接 - 网站地图 - 版权声明 - 发展历史