Тёмный

How to run C++ program in command prompt 

Coding is Love
Подписаться 1,4 тыс.
Просмотров 216 тыс.
50% 1

Writing a hello world program in C++ language and compiling and executing it using Command Prompt (CMD)
#cmd #howto #C++ #c++programming #programming
#shorts #youtubeshorts #shortsvideo #beginner

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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 4 месяца назад
I have it magic
@TheTimeProphet
@TheTimeProphet 11 месяцев назад
Naughty Naughty I gave you a thumbs up, but you should never namespace STD.
@zenith2808.
@zenith2808. 10 месяцев назад
Agreed
@pabblo1
@pabblo1 10 месяцев назад
Why not? It's just a Hello World program.
@zenith2808.
@zenith2808. 9 месяцев назад
Yes but it’s bad practice to do “using namespace std”
@GDT-Studio
@GDT-Studio 6 месяцев назад
I love using namespace, it makes the code smaller and readable.
@zenith2808.
@zenith2808. 4 месяца назад
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.
@nadkoch
@nadkoch 7 месяцев назад
Спасибо, постоянно забываю что консоль можно открыть так.
@jakeelunker176
@jakeelunker176 Год назад
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 8 месяцев назад
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 5 месяцев назад
The code in the video are not right.. right code #include using namespace std; int main() { cout
@AtifAhmed-67
@AtifAhmed-67 3 месяца назад
Download Dev C++❤
@coolmc7976
@coolmc7976 Год назад
helped
@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
@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.
@ulasarslan2577
@ulasarslan2577 3 месяца назад
But need a compiler g++ llvm-devel and others😅
@abdulmohaimin9729
@abdulmohaimin9729 10 месяцев назад
How did it work without return 0
@pabblo1
@pabblo1 10 месяцев назад
Most compilers by default assume return 0.
@au._.79
@au._.79 2 месяца назад
C++, by design, has an implicit return 0 in main function
@HassaanNonari
@HassaanNonari 7 месяцев назад
Where is return keyword for int function 😂
@drzahraa-oc5jl
@drzahraa-oc5jl 8 месяцев назад
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 4 месяца назад
you have to install gcc
@pooja6487
@pooja6487 11 месяцев назад
Thank you very much sir helped alot❤
@Sulaiman1234-u9c
@Sulaiman1234-u9c 2 месяца назад
Wrong letter Include iostream.h
@Prasuryavlogs
@Prasuryavlogs Месяц назад
No
@user-xxCATALONIA
@user-xxCATALONIA 10 месяцев назад
Why explain quickly !!
@visitor_t-w3p
@visitor_t-w3p 8 месяцев назад
So cool...I loved it
@siddharthmeshram237
@siddharthmeshram237 10 месяцев назад
How about return 0 since it's int main()
@pabblo1
@pabblo1 10 месяцев назад
Most compiler will automatically assume return 0.
@Lilyys
@Lilyys 10 месяцев назад
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 3 месяца назад
Yep, go to display settings. Its been 6 months so I guess you already found it
@camwha5904
@camwha5904 Год назад
Forgot the Dreamscape music lol
@monlanoza7480
@monlanoza7480 4 месяца назад
🇵🇮
@raquelruizespejo8888
@raquelruizespejo8888 Год назад
ork 100%
@tweetyguy7347
@tweetyguy7347 Год назад
guh
@barrelrole
@barrelrole 4 месяца назад
never ogre
@dilshadansari-vu3je
@dilshadansari-vu3je 11 месяцев назад
I need help bro
Далее
ASMR Programming - Calculator App Coding - No Talking
34:06
15 CMD Commands Every Windows User Should Know
7:51
Просмотров 781 тыс.
Writing a Simple C++ Program
10:59
Просмотров 630 тыс.
Meta Has Changed The Game.
10:17
Просмотров 5 тыс.
Making a Game in C++ with No Experience
5:16
Просмотров 276 тыс.
Why You Should Learn C++
0:35
Просмотров 360 тыс.
How to run C program in command prompt
0:58
Просмотров 293 тыс.