From bdddb8b0634f53ab25acb2f3f6834c4e57ffb7df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dami=C3=A1n=20Korpesio?= Date: Wed, 13 Oct 2021 18:18:31 +0200 Subject: [PATCH] prvy --- cv2/program.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cv2/program.c b/cv2/program.c index 51943ec..ac87976 100644 --- a/cv2/program.c +++ b/cv2/program.c @@ -56,6 +56,7 @@ int main() { strcpy(strpred, jedalny_listok[d - 1].name); strcpy(jedalny_listok[d - 1].name, jedalny_listok[d + 1].name); strcpy(jedalny_listok[d + 1].name, strpred); + printf("%s\n", jedalny_listok[d].name); } else if(jedalny_listok[d].prize == jedalny_listok[d+2].prize){ if(strcmp(jedalny_listok[c].name, jedalny_listok[d].name) > 0){ @@ -72,7 +73,7 @@ int main() { for (i = 0; i