k2m.cpp Write a program which converts kilometers to miles and miles to kilometers. Input value (m or km)is in argv[1] Program is accessed by "k2m" or "m2k", using Unix' ability to assign SYMBOLIC LINKS to files, so they have multiple names. The program knows to do kilometers -> or miles -> km by examining its name in argv[0]. (It does a string comparison on argv[0]). Miles to kilometers: m2k Kilometers to miles: k2m If you're developing on a Windows machine (no Symbolic Links), just copy the compiled *.EXE file to the other name. copy k2m.exe m2k.exe That way, each program can know what it is doing by looking at its name. The math: 1 kilometer equals 0.62137 miles.
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
k2m.cpp Write a program which converts kilometers to miles and miles to kilometers. Input value (m...