i want to be able to write codes in school but they dont have Dev or visual studio
i saw some one do it with java and the command prompt open and it was there he used alot of batch files
any way i want to do C++
How can i complile a C++ code using only notepad?
yes.
go here: http://gcc.gnu.org/
and download the C++ compiler,
then from there open it up, it will be a bash shell and you can compile code like
g++ blah.cpp -o blah_name_of_exe
and to run ./blah
if ur used to dev, you dont need system("PAUSE"); at the end of ur code, and it will prolly give you errors if you do it
from notepad remember to save ur files with .cpp extensions
u might wanna try downloading notepad ++ it is the same thing as notepad but has syntax highlighting
Reply:You will still need a compiler (g++, cl). But you can edit the source files (*.cpp) in notepad and then run make.
Normally, when you develop you use a program called 'make' or 'nmake' to do your compile/link process using something called a Makefile. He might of been doing that.
Reply:I don't think Java requires compiling, what with its byte-code and all. I might be wrong.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment