buzzword.cpp

来自「通过VC源代码」· C++ 代码 · 共 50 行

CPP
50
字号
#include "stdafx.h"

TCHAR * words0[] = {
	_T("integrated"),	// 0
	_T("total"),		// 1
	_T("sytematized"),	// 2
	_T("parallel"),		// 3
	_T("functional"),	// 4
	_T("responsive"),	// 5
	_T("optional"),		// 6
	_T("synchronized"),	// 7
	_T("compatible"),	// 8
	_T("balanced")};	// 9

TCHAR * words1[] = {
	_T("management"),	// 0
	_T("organizational"),	// 1
	_T("monitored"),	// 2
	_T("reciprocal"),	// 3
	_T("digital"),		// 4
	_T("logistical"),	// 5
	_T("transitional"),	// 6
	_T("incremental"),	// 7
	_T("fifth-generation"),	// 8
	_T("policy")};		// 9

TCHAR * words2[] = {
	_T("options"),		// 0
	_T("flexibility"),	// 1
	_T("capability"),	// 2
	_T("mobility"),		// 3
	_T("programming"),	// 4
	_T("concept"),		// 5
	_T("paradigm"),		// 6
	_T("projection"),	// 7
	_T("hardware"),		// 8
	_T("user interface")};	// 9

void buzzphrase(CString & s)
    {
     int n = rand() % 10;
     s += words0[n];
     s += _T(" ");
     n = rand() % 10;
     s += words1[n];
     s += _T(" ");
     n = rand() % 10;
     s += words2[n];
    }

⌨️ 快捷键说明

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