B
Brian Dude
Hello, I only recently upgraded my computer and installed Windows XP (new
hard drive as well). So I installed my good ol' Borland C++ 4.52 software
and wanted to get back to one of my old DOS programs. The program
(GRAPH.EXE) takes an algebraic expression as a command-line arguement, i.e:
graph x^2-2*x+5
However, the command prompt seems to ignore the '^' symbol and generates an
error. I was curious why, so I created a quick program to simply echo
argv[1] (well the first three characters anyway), and the character wasn't
even stored. It just showed:
x2
(for argv[1][0], and argv[1][1] respectively). Why is this happening?
TIA,
Brian Dude
hard drive as well). So I installed my good ol' Borland C++ 4.52 software
and wanted to get back to one of my old DOS programs. The program
(GRAPH.EXE) takes an algebraic expression as a command-line arguement, i.e:
graph x^2-2*x+5
However, the command prompt seems to ignore the '^' symbol and generates an
error. I was curious why, so I created a quick program to simply echo
argv[1] (well the first three characters anyway), and the character wasn't
even stored. It just showed:
x2
(for argv[1][0], and argv[1][1] respectively). Why is this happening?
TIA,
Brian Dude