+ 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; ❵

12th Jul 2016, 9:37 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar
10 Réponses
+ 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.
12th Jul 2016, 10:21 AM
Dominik Kulik
Dominik Kulik - avatar
+ 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.
12th Jul 2016, 10:47 AM
VISHAL PRAJAPATI
VISHAL PRAJAPATI - avatar
+ 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" ...
12th Jul 2016, 1:49 PM
Røhit Yadav
Røhit Yadav - avatar
+ 2
u need to compile lol
12th Jul 2016, 11:13 AM
Shirshak Bajgain
Shirshak Bajgain - avatar
+ 1
if you really want to use any text editor then use notepad ++ . It shows different colors
12th Jul 2016, 10:40 AM
Soumo Mukherjee
Soumo Mukherjee - avatar
+ 1
no u can't use a note pad... u will need a compiler
12th Jul 2016, 12:28 PM
Løkåñãth Bãrîk
Løkåñãth Bãrîk - avatar
+ 1
no Cant use in note pad
12th Jul 2016, 12:51 PM
sunilgls
+ 1
after writing the program, first u must compline & then run
13th Jul 2016, 5:21 PM
Adarsh pujary
Adarsh pujary - avatar
+ 1
Try 'turbo c++' application to run your program (you must download it in your PC ) .It has compiler.
15th Jul 2016, 7:31 AM
CHINMAY HATTEWAR
CHINMAY HATTEWAR - avatar
+ 1
Thank you all
18th Jul 2016, 11:40 AM
Mahima Rajvir Singh
Mahima Rajvir Singh - avatar