work_tmp/propo.cpp

53 lines
737 B
C++
Raw Normal View History

2024-02-07 06:42:32 +00:00
#include <iostream>
using namespace std;
// 参数来源类型
typedef enum
{
PropertyTypeFS = 1,
PropertyTypeRemote = 2
} prop_src_type;
// 双向链表
typedef struct link_list
{
string key;
unsigned char data[8];
link_list *nest;
link_list *pre;
} link_list;
link_list *ll_start = NULL;
class prop
{
public:
prop(void);
prop(prop_src_type type, string str);
};
prop::prop(void)
{
for (int i = 0; i < 100; i++)
{
link_list *node = (link_list *)malloc(sizeof(link_list));
}
}
prop::prop(prop_src_type type, string str)
{
if (type == PropertyTypeFS)
{
}
else if (type == PropertyTypeRemote)
{
}
}
int main(int argc, char *argv[])
{
return 0;
}