ahh..
This commit is contained in:
parent
4fde774336
commit
95f0d1438b
@ -4,13 +4,11 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
/*int main(void){
|
int main(void){
|
||||||
printf("Zadajte zoznam cieľových staníc a počet cestujúcich.\n");
|
printf("Zadajte zoznam cieľových staníc a počet cestujúcich.\n");
|
||||||
printf("Zoznam zakončite prázdnym riadkom.\n");
|
printf("Zoznam zakončite prázdnym riadkom.\n");
|
||||||
|
|
||||||
add_car;
|
|
||||||
return 0;
|
return 0;
|
||||||
}*/
|
}
|
||||||
|
|
||||||
struct car* add_car(struct car* first,const char* target) {
|
struct car* add_car(struct car* first,const char* target) {
|
||||||
struct car* newcar = calloc(1,sizeof(struct car));
|
struct car* newcar = calloc(1,sizeof(struct car));
|
||||||
@ -36,7 +34,7 @@ void print_train(struct car* first) {
|
|||||||
|
|
||||||
void cancel_train(struct car* first) {
|
void cancel_train(struct car* first) {
|
||||||
if(first!=NULL){
|
if(first!=NULL){
|
||||||
struct car* temp= first;
|
struct car* temp=first;
|
||||||
struct car* next;
|
struct car* next;
|
||||||
while(temp!=NULL){
|
while(temp!=NULL){
|
||||||
next=temp->next;
|
next=temp->next;
|
||||||
|
BIN
cv5/train.exe
Normal file
BIN
cv5/train.exe
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user