Saturday, May 22, 2010

How can I use winxp to run and compile c programming. I have borland C/C++ command line but I'm stumped?

When I open the file BCC55 there are lots of files and folders inside. When I run one of the files a screen flashes up and disappears. How can I send my 'Hello World' to the compiler to make it actually send to the screen Hello World?





I started working with Cscript from the command line but I got not very far at all. Any suggestions, or do I need another piece of software or what? The book I'm using says he created a new directory called my Programs and the file hello.c inside has a cog Icon. How do I do that? Again any suggestions appreciated.

How can I use winxp to run and compile c programming. I have borland C/C++ command line but I'm stumped?
Since you have the command line version of the compiler, you will not have an IDE that you can double click on to open an editor in which you can write you program.





You first need to write your program using an editing tool (notepad is an editing tool that should be available on most windows based computers). After writing the program, copy it to your Borland bin directory. The open the command prompt and type





bcc55 hello.cc





assuming that your file is called hello.cc, that should compile your file and generate an exe with the same name (hello.exe). Type the name of the file (hello.exe) and your program should run.
Reply:I think you will find the information on the website below


useful.
Reply:Run it from a DOS Window ( Command Prompt )

periwinkle

No comments:

Post a Comment