+ 2
I wrote a simple basic c++ code in my PC notepad and I saved it with .cpp extension also. But when I run this program in any browser it shows the code as it is... Do c++ code can be written in notepad and can be run? Please answer. #include <iostream> using namespace std; int main() ❴ cout << "hello"; return0; ❵
10 ответов
+ 8
No, you must use compilator. And don't use notepad, it's very unwieldy. Use ide, when you see color syntax, tips and other cool stuff you probably forget about notepad . For Linux and Windows you should start with codeblock, download it with compiler! Compiler is used to compile your source code to binary code. For me, I prefer clion from jetbrain, but codeblock it's free.
+ 4
sololearn code playground is best, u can open in browser and run/save your code.
for your PC you can Google MinGW and download and install.
+ 4
if you have compiler and you code something in c++ using notepad and save it as .CPP extension the file will be automatically opened by compiler .. if you have not compiler in your PC then what you said (already mentioned) is going to be happen ... IN SHORT YOU MUST HAVE A COMPILER I SUGGEST YOU TO USE "CODE::BLOCK" ...
+ 2
u need to compile lol
+ 1
if you really want to use any text editor then use notepad ++ . It shows different colors
+ 1
no u can't use a note pad... u will need a compiler
+ 1
no Cant use in note pad
+ 1
after writing the program, first u must compline & then run
+ 1
Try 'turbo c++' application to run your program (you must download it in your PC )
.It has compiler.
+ 1
Thank you all