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

📄 ch11counter.cpp

📁 此例子是学习C++的好东西
💻 CPP
字号:
//Program 11-1 Counter   Sample program with a counter object

//File: Ch11Counter.cpp

#include "Ch11Counter.h"
#include <iostream.h>

int main()
{
	Counter HowMany;    // constructor sets HowMany count = 0
	cout << "\n Sample program with class Counter  \n";
	HowMany.PrintCount();
	cout << "\n Increment HowMany twice: ";
	++HowMany;
	++HowMany;
	HowMany.PrintCount();
	cout << "\n Now set the count back to zero. ";
	HowMany.SetCount(0);  // set count value back to zero
	HowMany.PrintCount();
	cout << "\n\n All finished counting! \n";
	return 0;
}

⌨️ 快捷键说明

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