⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testwarpath.cpp

📁 ftpserver very good sample
💻 CPP
字号:
#include "stdafx.h"#include <assert.h>#include <iostream>#include "WarPath.h"using namespace std;void TestWarPath(){    WarPath<wchar_t> mycpath("c:\\test");    mycpath << "ing";    cout << "Initial path is " << mycpath << endl;    cout << "Filename is " << mycpath.GetFilename() << endl;    cout << "Path name is " << mycpath.GetPathname() << endl;    cout << "Mount path is " << mycpath.GetMountPath() << endl;    mycpath.IsEmpty();    mycpath.GetLength();    mycpath.Reset();    mycpath << "C:"         << WAR_SYSSLASH         << "test"        << WAR_SYSSLASH         << "myfile.txt";    cout << "Created path is '" << mycpath << "'" << endl;    cout << "Filename is " << mycpath.GetFilename() << endl;    cout << "Path name is " << mycpath.GetPathname() << endl;    cout << "Extension is " << mycpath.GetExtension() << endl;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -