English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3 answers

Yeah, you can. It all depends on what compiler you may install on your ms-dos, but in case you are using Gcc, you can generally type:

gcc -o file.c file

2006-07-05 17:19:08 · answer #1 · answered by felizmino213 3 · 0 0

To clarify what everyone ahead of me was trying to tell you:
When you write c code, you create a simple file of the type "name.c" where name is the name you chose
This is actually a file that you can even open up in notepad, since its all text.
For it to turn into an exe that you can run from msdos prompt, you need a compiler.
Now what you are trying to do is to call the compiler and give it the file "name.c" and ask it to generate the exe.
To do this, you need to understand
- what is the compiler you have installed in your computer? Is it gcc or visual studio compiler etc.
- how to call the compiler from command line

If you are not sure what compiler is installed, do what the folks earlier to me have asked you, and which ever one works for you, you will know, you can use it again later!

Hope this helps!

2006-07-06 01:46:59 · answer #2 · answered by Neil 5 · 0 0

yes.

From the dos prompt type msdev.exe /? this will bering up a help item on compiling Visual C++ code.

2006-07-06 00:48:13 · answer #3 · answered by boter_99 3 · 0 0

fedest.com, questions and answers