Question

How would I do this if it is possible? Would it work the same way with Notepad++?

Was it helpful?

Solution

Well, you would need a compiler of some sort. C++ source code won't just run, you need to turn it into an executable file.

And, yes, you can easily do this. If you download MinGW (minimalist GNU for Windows), you can compile source code from the command line just fine, using any editor you want to create the source files.

But it's possibly not something I'd inflict on a beginner, you may want to look in to the Microsoft Visual Studio Express editions since they give you an IDE which makes you life easier, unless you're a crusty old coder like me who still likes using punched cards :-).

OTHER TIPS

Like others mentioned, You just need a compiler to compile a C++ code and then execute it (if the compilation is free of errors). It is NOT dependent on what platform you use to write your code - any text editor works. Notepad or any other editor is just a tool.

You need a compiler to execute the code(e.g, gcc(use cygwin to run gcc if your on Windows)). Also, please search first before you ask(there are a lot of info on the Internet about C++ compiling). I suggest Visual Studio if you want to compile without using the command line(and make programming easier)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top