Mail Archives: djgpp/1999/02/09/10:30:52
"Ronald Patino G." wrote:
> Hi
> Do you guys know where can i find a program to translate programs
> written in basic to c ??
Try Bob Stout's snippets page (www.snippets.org). IIRC, he has one
of those there. How many lines of code are we talking about? What
does the program do? Depending on how comfortable you are with C and
how long the program is, you might be better off doing it by hand.
For example:
print "Hello, World"
translates easily:
#include <stdio>
int main()
{
printf("Hello, World\n");
}
A for loop:
for i = 1000 to 0 step -1
for (i = 1000; i >= 0; --i)
But I wouldn't want to to that to 10000 lines of source.
Once you get into graphics or console I/O things, you're on your own.
> Thanks in advance
> Ronald
--
Charles Krug, Jr.
Application Engineer
Pentek Corp
1 Park Way
Upper Saddle River, NJ 07458
- Raw text -