Sep 16, 2014 at 7:32pm UTC
ccccd
Last edited on Sep 17, 2014 at 2:21pm UTC
Sep 16, 2014 at 8:57pm UTC
Is this supposed to be C++?
If so, use <string> instead of <string.h>, <iostream> instead of <stdio.h>.
Get rid of printf and scanf. Use cin and cout instead.
Sep 16, 2014 at 9:29pm UTC
Your tables are 2x2, but you iterate 3x3 elements. Out of range error.
Your user could write on line 48 a word that is longer than 63 characters.
On same line, do not take an address of the array.
Avoid global variables; lines 70-71 could be in main().
The scanf_s
is non-standard.
Line 94:
* What if the user gives 0 for Podaj odleglosc miedzy nimi?
* Integer division discards remainder. Is that intentional?