标签:
#ifndef LIST_INSERTREMOVEPRINT_H
#define LIST_INSERTREMOVEPRINT_H
#include<iostream>
struct ListNode{
int val;
struct ListNode *nxt;
};
void addListNode(struct ListNode*list,int value){
struct ListNode *nodeInsert=(struct ListNode*)(malloc(sizeof(struct ListNode)));
nodeInsert->val=value;
nodeInsert->nxt=NULL;
if(list==NULL){
list=nodeInsert;
return ;
}
struct ListNode *iter=list;
while(iter->nxt!=NULL){
iter=iter->nxt;
}
iter->nxt=nodeInsert;
}
#end
void addListNode(struct ListNode*list,int value)
list=nodeInsert
void test(int a,int value){
int c;
a=c;
}
iter->nxt=nodeInsert;
标签:
原文地址:http://www.cnblogs.com/yml435/p/4655455.html