📄 bcfunc.sct
字号:
// Class: CLASS_NAME
//////////////////////////.cpp file/////////////////////////////////////////////////////
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -