如何在UML中使用typedef无符号写入数据属性 [英] how to write data attributes in UML with typedef unsigned
本文介绍了如何在UML中使用typedef无符号写入数据属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的示例代码,我的问题是我要如何在UML类图中编写 uint延迟
,因为它是 typedef unsigned
--------------------------------------------- --------------------------------------------我应该这样写吗? -delay:int
还是这种方式? -延迟:uint
--------------------------------- ------
this is my sample code my question is how am i going to write uint delay
in UML Class Diagram, because it is typedef unsigned
-----------------------------------------------------------------------------------------should i write it like this? - delay : int
or this way? - delay : uint
---------------------------------------
typedef unsigned int uint;
class MyBreakoutGameType : ...
{
public:
private:
uint delay;
};
推荐答案
您所提到的代码的图应该像这样
Your diagram for the mentioned code should look like
这篇关于如何在UML中使用typedef无符号写入数据属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文