这是一个作业,是应用这个提供的data structure Steque 控制程序里object的流向和 path。 源码贴这里了 http://pastebin.com/VzvcdJKu 我现在对如何使用这个data structure糊涂,从java过来的,不知道在C里面怎么初始 化一个object. 我自己想做一个下面的初始化测试: typedef struct steque_t steque; steque *stq; int i; for(i = 0; i < 10; i++) { steque_item *item = malloc(sizeof(steque_item)); // 这样初始化一个 item steque_enqueue(stq, item); //然后把item enqueue到stq数据结构里面 } 可是目前这么做的结果是编译时报错: gcc stequeTest.c -o stequeTest stequeTest.c: In function ‘main’: stequeTest.c:19:6: warning: passing argument 1 of ‘steque_enqueue’ from incompatible pointer type [enabled by default] steque.h:28:6: note: expected ‘struct steque_t *’ but argument is of type ‘struct steque *’ /tmp/ccxO1ZWh.o: In function `main': stequeTest.c:(.text+0x2e): undefined reference to `steque_enqueue' collect2: ld returned 1 exit status 想请教一下,在C里面如何初始化一个data structure object? 知道这个我下面的程序 就会写了,谢谢
s*4
4 楼
anyone who have expericence on Asset manangement, hedge fund and private equity and are interested in working with big fours, please send me your resume.
【在 s*****e 的大作中提到】 : Is it good to take depreciation? The depreciation will be add back when u : sell the home. and capital gain tax rate is going higher..