How to run C++ program in command prompt

  Рет қаралды 227,508

Coding is Love

Coding is Love

Күн бұрын

Пікірлер: 52
@robertchoate359
@robertchoate359 Жыл бұрын
gcc is the compiler he’s calling the compiler to run his code. For those of you saying it’s not working you have to load MSYS and load it into your Windows environment by adding it as a variable
@coding-is-love
@coding-is-love Жыл бұрын
You are right!
@Damnerz
@Damnerz 5 ай бұрын
I have it magic
@visitor_t-w3p
@visitor_t-w3p 9 ай бұрын
So cool...I loved it
@pooja6487
@pooja6487 Жыл бұрын
Thank you very much sir helped alot❤
@TheTimeProphet
@TheTimeProphet Жыл бұрын
Naughty Naughty I gave you a thumbs up, but you should never namespace STD.
@zenith2808.
@zenith2808. 11 ай бұрын
Agreed
@pabblo1
@pabblo1 11 ай бұрын
Why not? It's just a Hello World program.
@zenith2808.
@zenith2808. 10 ай бұрын
Yes but it’s bad practice to do “using namespace std”
@GDT-Studio
@GDT-Studio 7 ай бұрын
I love using namespace, it makes the code smaller and readable.
@zenith2808.
@zenith2808. 5 ай бұрын
In small projects, that’s alright but when you’re doing massive or medium sized projects, using namespace std causes namespace poisoning. That is, user functions or keywords may clash with std members.
@coolmc7976
@coolmc7976 Жыл бұрын
helped
@HackYourLife2day
@HackYourLife2day Жыл бұрын
it compiles for me but when I try to execute ‘a’ it says “a is not recognized as an internal or external command”
@adnananjum9131
@adnananjum9131 9 ай бұрын
Try doing "cd " and after a space, write the path to the directory where you saved your code. For example: cd Desktop/CPP Adjust it according to your directory. Now, write "a" or "a.exe".
@roblox_game518
@roblox_game518 6 ай бұрын
The code in the video are not right.. right code #include using namespace std; int main() { cout
@AtifAhmed-67
@AtifAhmed-67 5 ай бұрын
Download Dev C++❤
@nadkoch
@nadkoch 8 ай бұрын
Спасибо, постоянно забываю что консоль можно открыть так.
@darkhunterrr-k9e
@darkhunterrr-k9e Жыл бұрын
i followed exact same steps but i didnt go through. why is that so?
@RidanKhan931
@RidanKhan931 Жыл бұрын
did you put return 0; ?
@darkhunterrr-k9e
@darkhunterrr-k9e Жыл бұрын
yes i did . still don't know what to do.?!?@@RidanKhan931
@abdulmohaimin9729
@abdulmohaimin9729 11 ай бұрын
How did it work without return 0
@pabblo1
@pabblo1 11 ай бұрын
Most compilers by default assume return 0.
@au._.79
@au._.79 3 ай бұрын
C++, by design, has an implicit return 0 in main function
@just_the__facts
@just_the__facts Жыл бұрын
G++ is giving issues it's saying that it is not recognized as internal external command
@coding-is-love
@coding-is-love Жыл бұрын
did you install c++ compiler?
@just_the__facts
@just_the__facts Жыл бұрын
@@coding-is-love thank you
@coding-is-love
@coding-is-love Жыл бұрын
@@just_the__facts welcome
@adityaarya2
@adityaarya2 Жыл бұрын
​@@coding-is-loveI have installed but it not recognising
@coding-is-love
@coding-is-love Жыл бұрын
@@adityaarya2 maybe the issue is environment variable.
@camwha5904
@camwha5904 Жыл бұрын
Forgot the Dreamscape music lol
@ulasarslan2577
@ulasarslan2577 4 ай бұрын
But need a compiler g++ llvm-devel and others😅
@HassaanNonari
@HassaanNonari 8 ай бұрын
Where is return keyword for int function 😂
@drzahraa-oc5jl
@drzahraa-oc5jl 9 ай бұрын
I followed this step but the word doesn’t come it say error I don’t now why I am very confused and sad
@Hal0gen
@Hal0gen 6 ай бұрын
you have to install gcc
@siddharthmeshram237
@siddharthmeshram237 11 ай бұрын
How about return 0 since it's int main()
@pabblo1
@pabblo1 11 ай бұрын
Most compiler will automatically assume return 0.
@user-xxCATALONIA
@user-xxCATALONIA 11 ай бұрын
Why explain quickly !!
@Lilyys
@Lilyys 11 ай бұрын
that window where you print the output. Mine is in dark mode. Is there a way to change it back to light mode?
@1223emerald
@1223emerald 4 ай бұрын
Yep, go to display settings. Its been 6 months so I guess you already found it
@Sulaiman1234-u9c
@Sulaiman1234-u9c 4 ай бұрын
Wrong letter Include iostream.h
@Prasuryavlogs
@Prasuryavlogs 3 ай бұрын
No
@raquelruizespejo8888
@raquelruizespejo8888 Жыл бұрын
ork 100%
@tweetyguy7347
@tweetyguy7347 Жыл бұрын
guh
@barrelrole
@barrelrole 6 ай бұрын
never ogre
@dilshadansari-vu3je
@dilshadansari-vu3je Жыл бұрын
I need help bro
@monlanoza7480
@monlanoza7480 5 ай бұрын
🇵🇮
Compiling & Executing C++ Programs (Windows CMD)
12:18
Neso Academy
Рет қаралды 141 М.
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 38 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 58 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Making My Own Programming Language and Coding a Game in It
10:19
AstroSam
Рет қаралды 1,3 МЛН
I Tried Real Augmented Reality Glasses!
20:29
Marques Brownlee
Рет қаралды 3,9 МЛН
How to STUDY so FAST it feels like CHEATING
8:03
The Angry Explainer
Рет қаралды 1,4 МЛН
Building a Particle Simulation Physics Engine in C++ from Scratch
9:56
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 432 М.
easy 3d drawing on paper 3 boyutlu çizimler kolay 3d çizim
11:56
çizim yap
Рет қаралды 2,2 МЛН
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 282 М.
How C++ took a turn for the worse
5:03
Code Persist
Рет қаралды 320 М.
How to Run C/C++ Program in Visual Studio Code [2024] | Run C & C++ in VS Code
6:14
小丑揭穿坏人的阴谋 #小丑 #天使 #shorts
00:35
好人小丑
Рет қаралды 38 МЛН