prog.c: In function ‘main’:
prog.c:13:3: error: unknown type name ‘TWICE’
TWICE *head = new TWICE(); //取得一個和 TWICE 大小一樣的區塊,然後配給 head 這個指標
^~~~~
prog.c:13:3: note: use ‘struct’ keyword to refer to the type
prog.c:13:17: error: ‘new’ undeclared (first use in this function)
TWICE *head = new TWICE(); //取得一個和 TWICE 大小一樣的區塊,然後配給 head 這個指標
^~~
prog.c:13:17: note: each undeclared identifier is reported only once for each function it appears in
prog.c:13:21: error: expected ‘,’ or ‘;’ before ‘TWICE’
TWICE *head = new TWICE(); //取得一個和 TWICE 大小一樣的區塊,然後配給 head 這個指標
^~~~~
prog.c:13:10: warning: unused variable ‘head’ [-Wunused-variable]
TWICE *head = new TWICE(); //取得一個和 TWICE 大小一樣的區塊,然後配給 head 這個指標
^~~~
prog.c:10:14: warning: unused variable ‘i’ [-Wunused-variable]
int count, i;
^