• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ VLNString类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中VLNString的典型用法代码示例。如果您正苦于以下问题:C++ VLNString类的具体用法?C++ VLNString怎么用?C++ VLNString使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了VLNString类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: main

int main()
{
	VLNString vl;

	string l = "dance dance revolution";
	string ac = vl.makeAcronym(l);
	return 0;
}
开发者ID:pcodex,项目名称:TopCoder,代码行数:8,代码来源:srm226.cpp


示例2: test21

int test21() {
    string longName = " slsljk andof of ckvifiwo zcihcnskbg and ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "SACZ";
    if(result == expected) {
        cout << "Test Case 21: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 21: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例3: test56

int test56() {
    string longName = "anda";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "A";
    if(result == expected) {
        cout << "Test Case 56: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 56: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例4: test48

int test48() {
    string longName = " and phmymcamuy mrzo wnjejydhpqedthe of k";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "PMWK";
    if(result == expected) {
        cout << "Test Case 48: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 48: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例5: test46

int test46() {
    string longName = " of sjgagjnkauthe ycxjsthxjbezdu wmlwplyayx ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "SYW";
    if(result == expected) {
        cout << "Test Case 46: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 46: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例6: test44

int test44() {
    string longName = " of trbubll sszxiryy mgbqvsgozaubfibnoj and ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "TSM";
    if(result == expected) {
        cout << "Test Case 44: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 44: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例7: test42

int test42() {
    string longName = " of kjfzxaof and the and xluofzvplx ay";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "KXA";
    if(result == expected) {
        cout << "Test Case 42: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 42: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例8: test40

int test40() {
    string longName = "sualzwnkjq and czrrh xgand f j mc t";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "SCXFJMT";
    if(result == expected) {
        cout << "Test Case 40: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 40: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例9: test28

int test28() {
    string longName = "khvc frzzzxkuro q lxaxpugnsl the slpdafrx h";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "KFQLSH";
    if(result == expected) {
        cout << "Test Case 28: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 28: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例10: test27

int test27() {
    string longName = "uhnikqrpl c czepogygaerpgh vgrmleand ofrzxvkydcy";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "UCCVO";
    if(result == expected) {
        cout << "Test Case 27: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 27: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例11: test26

int test26() {
    string longName = " and hdcfwqvqsw bluldkm urfmxtq vtssdwykkc ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "HBUV";
    if(result == expected) {
        cout << "Test Case 26: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 26: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例12: test25

int test25() {
    string longName = " p the ad hyfxlddpxl the k lxkntauoi";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "PAHKL";
    if(result == expected) {
        cout << "Test Case 25: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 25: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例13: test24

int test24() {
    string longName = " ofpdgdodpdok bdp oehnqooc swuomeivdryko ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "OBOS";
    if(result == expected) {
        cout << "Test Case 24: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 24: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例14: test23

int test23() {
    string longName = "qefw jmo of eec glqxnyseo andezstlof the";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "QJEGA";
    if(result == expected) {
        cout << "Test Case 23: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 23: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例15: test22

int test22() {
    string longName = "rnikdltuo fsoqui sdbmexbfhbuoq iax szollfq";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "RFSIS";
    if(result == expected) {
        cout << "Test Case 22: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 22: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例16: test38

int test38() {
    string longName = " fkiomof cwsjand dlvtheqdoskgselv brj bfragezs";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "FCDBB";
    if(result == expected) {
        cout << "Test Case 38: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 38: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例17: test39

int test39() {
    string longName = " hdrbidiqn ydhpkciabmf the lzwlcbmw dbg";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "HYLD";
    if(result == expected) {
        cout << "Test Case 39: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 39: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例18: test29

int test29() {
    string longName = " kd zxcyjesypg rka bkwh nvlawkbdfo kmucex";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "KZRBNK";
    if(result == expected) {
        cout << "Test Case 29: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 29: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例19: test41

int test41() {
    string longName = " fqnsdldqvkd and theof cdkzfpaaa niicfogc";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "FTCN";
    if(result == expected) {
        cout << "Test Case 41: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 41: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp


示例20: test30

int test30() {
    string longName = "ktzayeesj and jkcffgra pqztp gmdhhozu m of ";
    VLNString* pObj = new VLNString();
    clock_t start = clock();
    string result = pObj->makeAcronym(longName);
    clock_t end = clock();
    delete pObj;
    string expected = "KJPGM";
    if(result == expected) {
        cout << "Test Case 30: Passed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 0;
    } else {
        cout << "Test Case 30: Failed! Time: " << static_cast<double>(end-start)/CLOCKS_PER_SEC << " seconds" << endl;
        return 1;
    }
}
开发者ID:rick-qiu,项目名称:topcoder,代码行数:16,代码来源:srm226_vlnstring.cpp



注:本文中的VLNString类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ VM类代码示例发布时间:2022-05-31
下一篇:
C++ VJSParms_callStaticFunction类代码示例发布时间:2022-05-31
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap