当前位置: 首页>>代码示例>>C++>>正文


C++ Toker::des方法代码示例

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


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

示例1: main

int main()
{
	std::cout << "-----------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 1 -" << " " << " I have used Microsoft Visual Studio C++ Console Projects" << std::endl;
	std::cout << "-------------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 2 -" << " " << " I have used <iostream> for all I/O and new and delete for heap based management " << std::endl;
	std::cout << "----------------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 3 -" << " " << " I have provided Tokenzier Package, SemiExp package whose .ccp implements an interface named iTokCollection.h" << std::endl;
	std::cout << "------------------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 4 -" << " " << "Tokenizing Test File into Alphanumeric, Punctuator, Special One Character, Special Two Character, C Style Comments, C++ Comments and Quoted Strings" << std::endl;
	std::cout << "-------------------------------------------------------------------------------------------------------------\n";
	Toker toker;
	int f = dealTokenizer(toker);
	toker.des();
	std::cout << "------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 5 - " << " " << "The getTok() method prodduces one token for each call to it" << std::endl;
	std::cout << "-------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 6 -" << " " << "SemiExp package produces set of tokens by repeatdely calling getTok() until we run into a termination condition " << std::endl;
	std::cout << "--------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 7 - " << " " << "SemiExpressions are terminated on },{,; and : public, :private and :protected " << std::endl;
	std::cout << "---------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 8 - " << " " << "Folding for" << std::endl;
	std::cout << "----------------------------------------------------------------------------------------------\n";
	std::cout << "Output for 5,6,7,8 with same input file passed to Tokennizer with the Comment toggle turned off" << std::endl;
	int g = dealSemiExpressions();
	std::cout << "\n------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 9 -" << " " << " All the virtual methods in the iTokCollection interface have been implemented by the SemiExp Class " << std::endl;
	std::cout << "------------------------------------------------------------------------------------------------\n";
	std::cout << "Requirement 10 -" << " " << " TestExecutive which illustrates all possible test cases" << std::endl;
	std::cout << "---------------------------------------------------------------------------------------------------\n";
	std::cout << "Please enter any character to continue " << std::endl;

	std::getchar();
	
}
开发者ID:sidmarkjoseph,项目名称:C--piggybank,代码行数:35,代码来源:TestExecutive.cpp


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