mọi người giúp em với.em complile không có lỗi nhưng chương trình không chạy
#include<stdio.h>
#include<conio.h>
typedef struct Node{
int value;
struct Node * next;
};
Node *first;
Node *last;
Node *addLast(int x){
Node *p=new Node;
p -> value = x;
p -> next =NULL;
if(first = NULL)
first = p;
else
last -> next = p;
last = p;
}
Node *Print(){
Node *p = first;
while (p != NULL){
printf("%d ",p->value);
p= p->next;
}
}
int main(){
first=NULL;
last=NULL;
addLast(1);
addLast(2);
addLast(3);
Print();
getch();
return 0;
}

83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?