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

📄 demo_1_template_class_list.cpp

📁 对于一个初涉VC++的人来书
💻 CPP
字号:

//************************************************

# include "Demo_Template_Class_List.HPP"

void main()
{
	List<float> floatList; //模板类实例化

	for(int i=1;i<7;i++)
	{
		floatList.Add(*new float(i+0.6f));
	}

	cout<<"Old list:\n";
    floatList.PrintList();

	float b=3.6f;

	float* pa=floatList.Find(b);

	if(pa)
		floatList.Remove(*pa);

	cout<<"New list:\n";
	floatList.PrintList();
}

⌨️ 快捷键说明

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