UML和LW_OOPC_KC.H
来源:互联网 发布:大数据预处理的方法 编辑:程序博客网 时间:2024/04/28 05:00
Use Case(用例)的主要内涵及其表达为:
1)描述该服务的名称及返回的信息类型,她描述What
2)描述服务过程中,用户与系统之间有哪些交互,其描述How和When。但是请留意,这个How不是员工作汉堡的How,而是用户与系统如何交互的How。
3)描述用户的角色,她描述Who
/////////////////////////////////////////////////////////////////////////////////////
动态型(Dynamic):使用malloc函数
静态型(Static):标准型;不用malloc,其对象不是在程序执行期间才去分配空间的。而是与一般的int,char形态的变量一样,在编译期间就留下内存空间了,不需要在执行期间通过malloc来取得内存空间。
纯粹静态型(pure STATIC)精简型;避免使用指针来调用函数。即不调用new函数。
/* lw_oopc_kc.h */
#ifndef LOOPC_H
#define LOOPC_H
#include <malloc.h>
#define CLASS(type)/
typedef struct type type; /
struct type
#ifndef LW_OOPC_PURE_STATIC
#ifndef LW_OOPC_STATIC
#ifndef LW_OOPC_DYNAMIC
#define CTOR(type) /
void* type##Setting(type*); /
void* type##New() /
{ /
struct type *t; /
t = (struct type *)malloc(sizeof(struct type)); /
return type##Setting(t); /
} /
void* type##Setting(type *t) /
{
#else
#define CTOR(type) /
void* type##New() /
{ /
struct type* t; /
t = (struct type*)malloc(sizeof(struct type));
#endif
#else
#define CTOR(type) /
void * type##Setting(type* t)/
{
#endif
#endif
#define END_CTOR return (void*)t; }
#define FUNCTION_SETTING(f1, f2) t->f1 = f2;
#define IMPLEMENTS(type) type type
#define INTERFACE(type) /
typedef struct type type; /
struct type
#endif
/* end */
- UML和LW_OOPC_KC.H
- atlbase.h 和 streams.h
- def.h和global.h
- <float.h>和<limits.h>
- winable.h 和winuser.h
- fcntl.h和unistd.h
- fcntl.h和unistd.h
- signal.h和stdarg.h
- locale.h和stddef.h
- 【UML和UML Tools】 UML和模式应用
- 【UML】UML图的发展和体系结构
- OOP和UML
- UML和Rose
- UML和UP介绍
- 建模和UML
- 设计模式和UML
- UML图和C#
- UML和建筑设计图
- 浅谈网页CSS及DIV快速布局
- 来到新家了。。。
- onInterceptTouchEvent和onTouchEvent调用时序
- C++ STL 学习 :for_each与仿函数(functor)
- 硬件I2C
- UML和LW_OOPC_KC.H
- REP_61082
- 针对解决sql server数据库中不区分大小写问题.
- Target-> Generate/Execute SQL 灰色被屏蔽,不可用(Greyed Out)
- 开始学习。。。计划14周完成目标.
- 待整理的网址
- 对电脑十分有用的100招。
- hdu 1237 简单计算器有感
- c动态分配 数组指针