Do you need a development kit to write C++ code and compile it?
2011-08-20 05:39:51 UTC
Do you need a developers kit to write C++ code and compile it similarly to how you need the JDK to write and compile java code? Also, is there a command that you can use to run C++ code in command prompt?
Three answers:
2011-08-20 05:41:09 UTC
You don't need an IDE to write code. You do need an IDE to compile code. As for the code in the cpp files themselves, they're essentially textfiles that can be written anywhere.
Silent
2011-08-20 13:56:22 UTC
To write and compile C++ code, you need (at minimum) a text editor and a C++ compiler. Unlike Java, there are several different widely available C++ compilers you can choose from.
Also unlike Java, C++ code compiles to machine code, so what you ultimately get is a standard executable for whatever platform you're on — e.g., an .exe file on Windows. You don't need any special commands to run these from the command line.
CompEng
2011-08-20 12:47:34 UTC
If your ever writing code for a specific application, device, or program you néed to have a development kit so you can code so it's satisfying it's required resources. However, when writing code from the ground up you need a reachable C++ library, which you can download online, which gives the commands you type purpose. Depending on the application you might need a GUI too.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.