Hy there! Its my first time here, because i have not had a problem like this before. The program has a problem when i run it. When i choose "natakar" the second time and input the information it crashes. There is probably a problem with pointers or something in the function "elt natakar" but i do not know where, so if somebody could help me it would be a blessing;)
my code:
[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]#include <stdio.h> #include <string.h> #include <stdlib.h> #include <Windows.h>[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]#define MIZ 77[/size][/font][/color] [color=#000000][font=verdana, arial, helvetica, sans-serif][size=3]typedef struct{ int miza; char natakar[10]; char kuhar[10]; char jed[10]; SYSTEMTIME str_t; int kolicina; int status; //1...vneseno 2...pripravljeno }narocilo;
Question
computerboy1001
Hy there! Its my first time here, because i have not had a problem like this before. The program has a problem when i run it. When i choose "natakar" the second time and input the information it crashes. There is probably a problem with pointers or something in the function "elt natakar" but i do not know where, so if somebody could help me it would be a blessing;)
my code:
[/size][/font][/color]
Link to comment
Share on other sites
11 answers to this question
Recommended Posts