vc15func.sct

来自「c#设计模式WithCla」· SCT 代码 · 共 46 行

SCT
46
字号
// Class: CLASS_NAME

//////////////////////////.cpp file/////////////////////////////////////////////////////
#include "stdafx.h"
#include "TRUNCATE_EIGHT$CLASS_NAME$.h"    				

// Functions for class CLASS_NAME
[
//  Function: 	OPERATION_NAME
//  Purpose: 	OPERATION_COMMENT1
//  Parameters: CPP_OPERATION_PARAMETERS
//  Comments: 	OPERATION_COMMENT2
OPERATION_RETURN_TYPE CLASS_NAME::OPERATION_NAME(CPP_OPERATION_PARAMETERS_WITHOUT_DEFAULT) CPP_OPERATION_CONSTANT
{
  OPERATION_CODE
}
] 

			//Operator<< insertion for cout
			//Update to access 1:M part class attributes
			//Update to access 1:1 associated class attributes
			//Update to access 1:M associated class attributes 	
ostream& operator<< (ostream& os, CLASS_NAME$& a$CLASS_NAME)
{
[  os << (BASE_CLASS &) a$CLASS_NAME;]
  os << "Object Attribute Values - Class CLASS_NAME" << "\n";
[  os << "ATTRIBUTE_NAME: " << a$CLASS_NAME$.$ATTRIBUTE_NAME << "\n";]
[  os << "  AGGREGATION_ONE_NAME$: " << a$CLASS_NAME$.$AGGREGATION_ONE_NAME << "\n";]
  return os;
}			

			//Operator>> extraction for cin
			//Update to access 1:M part class attributes
			//Update to access 1:1 associated class attributes
			//Update to access 1:M associated class attributes 
istream& operator>> (istream& is, CLASS_NAME$& a$CLASS_NAME)
{
[  is >> (BASE_CLASS &) a$CLASS_NAME;]
  cout << "\nEnter Object Attibute Values - Class CLASS_NAME"; 
[  cout << "\nEnter ATTRIBUTE_NAME : " << "\n";
  is >> a$CLASS_NAME$.$ATTRIBUTE_NAME;]		
[  is >> a$CLASS_NAME$.$AGGREGATION_ONE_NAME;]
  return is;
}				

⌨️ 快捷键说明

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