c

ccccd
Last edited on
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.
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?
Topic archived. No new replies allowed.