This commit is contained in:
parent
fb622e0d22
commit
cb21f01ac7
@ -20,11 +20,12 @@ struct car* add_car(struct car* first,const char* target) {
|
||||
|
||||
void print_train(struct car* first) {
|
||||
struct car* this = first;
|
||||
if(first == NULL){
|
||||
/*if(first == NULL){
|
||||
exit(0);
|
||||
}
|
||||
else{
|
||||
while(this != NULL){
|
||||
}*/
|
||||
//else{
|
||||
if(first != NULL){
|
||||
while(this != NULL){
|
||||
printf("%s\n", this->value);
|
||||
this = this->next;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user