我在 VB NET 中遇到 vector 问题。
我用C++编写了一段代码
typedef struct
{
int process;
int burstTime;
int ArrivalTime;
int remaining;
int timeAddedToQ;
bool flag;
} process;
vector<process> proc;
如何在 VB NET 代码中表示此 C++ 代码?
我尝试用 Google 搜索,但没有任何帮助。如果有人可以提供帮助,我将非常感激
谢谢
最佳答案
您通常会为Process
创建一个类。信息,然后使用 List(Of Process)
替换 vector<process>
.
Public Class Process
Property Process As Integer
Property BurstTime As Integer
Property ArrivalTime As Integer
Property Remaining As Integer
Property Flag as Boolean
End Class
' Use in code as:
Dim proc as New List(Of Process)
关于c++ - 对象即时 VB Net 的 vector ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18599929/