I am attempting to make a BASIC to C++ converter... The name should say it all, but for you people who dont understand; it takes a .BAS file (BASIC) and re-writes the code to a .CPP file (C++); Now the program doesnt just copy one file to another, it converts the sorce to a C++ version.
Example
BASIC
-------
IF a= 10 then print "This is a test"
C++
-----
if (a = 10 ) cout << "This is a test" << endl;
Now what i need help with is coping identifires
I cant change this code
BASIC
-------
DIM a AS INTEGER
Its supposed to change to
int a
Can you please help
---------------------------
check out my site
http://home.dencity.com/neoprogramming/index.html