Compiling & Executing C++ Programs (VS Code)

Поделиться
HTML-код
  • Опубликовано: 4 окт 2024
  • C++ Programming: Compiling & Executing C++ Programs (VS Code)
    Topics discussed:
    1. Compilation of programs.
    2. Steps for compiling and executing C++ programs via Visual Studio Code (VS Code) using two methods.
    Follow Neso Academy on Instagram: @nesoacademy (bit.ly/2XP63OE)
    Follow me on Instagram: @jaiz_itech (bit.ly/2M3xyOa)
    Contribute: www.nesoacademy...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacademy...
    Website ► www.nesoacademy...
    Forum ► forum.nesoacade...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #CPPByNeso #CPP #CompilingCPPPrograms #ExecutingCPPPrograms

Комментарии • 128

  • @udaytiwari2855
    @udaytiwari2855 2 года назад +13

    There is a lot of confusion for me when I try to run my program but now after watching this masterpiece ,they are just old days for me because now everything is Crystal Clear.
    Thanks a lot Sir and team NESO ACADEMY 🙏❤️

  • @TaibaHanif
    @TaibaHanif 2 месяца назад +1

    i am a complete newbie to vs code and have been trying to get my files to compile for years (yes, years!). this is the video that finally pulled me out of the rabbit hole i was building and finally got my programs to work. thank you so much!

  • @DD-lr6ne
    @DD-lr6ne Год назад +33

    When I select Terminal - Run Build Task, the editor returns 'No build task to run found' That's where the wheels fell off the bus. Now what do I do?

  • @iliesadarab137
    @iliesadarab137 6 месяцев назад +1

    You are the BOSS, i was blocked for more than 3 hours and with your video helped me in 5 min thanks you from Paris

  • @cmempire9206
    @cmempire9206 2 года назад +3

    Was totally frustrated in this thing... finally a sigh of relief.. very big thanks 🙏

  • @mumtazahmed6812
    @mumtazahmed6812 11 месяцев назад +2

    I am muslim from Pakistan no doubt it doesnot matter but that man who uploaded this video very honest and hardworking explain brilliantly both theoretical and practical part of topic: how to compile and execute a program for c++ in visual studio code I have been unsuccessful for twenty days today I saw this video really learned a lot

  • @김지수-u9w5o
    @김지수-u9w5o 2 года назад +5

    This lecture is brilliant,compact and easy to understand ! i've looked for the lectrues like this . Thanks a lot Sir !!

  • @StaticBlaster
    @StaticBlaster Год назад +2

    Cool. Thanks for this tutorial. I was able to compile and run in my command prompt terminal but I was having problems in the VS code terminal. I didn't realize you have press the tab key before hitting the enter key. Appreciate the lecture.

  • @5redage5
    @5redage5 Год назад +6

    I have such a problem:
    Build finished with error(s).
    * The terminal process terminated with exit code: -1.
    * Terminal will be reused by tasks, press any key to close it.
    could you please help me

  • @lolab3977
    @lolab3977 Год назад +7

    compiling method 1 didnt work as When I select Terminal - Run Build Task, the editor returns 'No build task to run found'
    but method 2 worked for me

    • @cloudproblemssolved
      @cloudproblemssolved Месяц назад

      I have a solution for whoever is also getting Terminal - Run Build Task, the editor returns 'No build task to run found'
      Go to Terminal > Configure Default Build Task.
      If no options appear, select Create tasks.json file from template.
      Choose Others.
      Edit the tasks.json file and paste the following:
      {
      "version": "2.0.0",
      "tasks": [
      {
      "label": "build",
      "type": "shell",
      "command": "g++",
      "args": [
      "-g",
      "${file}",
      "-o",
      "${fileDirname}/${fileBasenameNoExtension}.exe"
      ],
      "group": {
      "kind": "build",
      "isDefault": true
      },
      "problemMatcher": [
      "$gcc"
      ],
      "detail": "Generated task by VS Code."
      }
      ]
      }
      Now click on test.cpp and do it again (Terminal > Run Build Task) and it will work and create test.exe

  • @satishpal2590
    @satishpal2590 3 года назад +10

    Guys I'm not first and I'm not last but I'm here for to get something 😁

  • @pwian4ansh
    @pwian4ansh Год назад

    Thank u very much
    This is what no one is teaching
    My first program run successfully

  • @Sahilsharma-sk5vr
    @Sahilsharma-sk5vr Год назад +1

    neso you are best in every field

  • @Big-Chungus21
    @Big-Chungus21 Год назад +2

    things are starting to make sense finally. And I havent even started writing a proper program 😂
    Certainly a different beast to Python, which ive started to get bored of. You definitely start to appreciate how accessible it was.

  • @DarArjuman-f2h
    @DarArjuman-f2h 10 дней назад

    Thank you so much,finally done😊

  • @Migger-17-FRESCO
    @Migger-17-FRESCO Год назад +1

    now, ok. Terminal > Build Task > g++. I don't have any of those hints even if i type them they dont compare. What can i do for it?

  • @girishpatil2783
    @girishpatil2783 8 месяцев назад

    At last the only video which helped me to setup and execution of the first code on vs code.....

  • @gopikumarsigireddy5410
    @gopikumarsigireddy5410 11 месяцев назад

    standard of teaching is at top notch, keep going .....

  • @LVC85costa
    @LVC85costa 8 месяцев назад

    You have a great way of teaching. Proper pedagogy

  • @basharatmir4025
    @basharatmir4025 3 года назад +3

    Sir what If we can directly run the code by pressing the shortcut key ,,,ctrl+alt+N

  • @niknam.344
    @niknam.344 2 месяца назад

    It was so useful and awesome. Thank you for your explanation ❤❤❤

  • @buddhainstitute2232
    @buddhainstitute2232 3 года назад +1

    Please tell that which mic and recorder used...
    The voice is too clear and understandable 👍
    1000+ love ❤️

  • @pulakbhowmik6788
    @pulakbhowmik6788 10 месяцев назад

    thank you so much sir. i will grateful to you all through my life.

  • @anjaligupta-ew6ns
    @anjaligupta-ew6ns 3 года назад +3

    Yes please upload daily 🙏😊

  • @mohammedshahed3432
    @mohammedshahed3432 3 года назад +5

    Could NESO academy upload lecture videos meteorically, please. Could this academy also create videos on MACHINE LANGUAGE?

  • @rheniuspaul389
    @rheniuspaul389 3 года назад +2

    Nice sir looking forward for...many programs thanks

  • @elipubg666
    @elipubg666 5 месяцев назад +1

    i love you sir.
    python really spoiled us new learners 😂

  • @Barbie-yu9ym
    @Barbie-yu9ym Месяц назад

    Great video. Thank you!

  • @Sir_PoMmez
    @Sir_PoMmez 13 дней назад

    Great Success. Thank you !

  • @repairstudio4940
    @repairstudio4940 Год назад +1

    This is one of the best explanations I've encountered! Thank you please make more vids! Liked and Subbed! 🎉

  • @shonorlandomavie8930
    @shonorlandomavie8930 5 месяцев назад

    Beautifully explained

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 года назад +2

    I love Neso Academy ❤️

  • @aishuplanet9132
    @aishuplanet9132 5 месяцев назад

    Thank you man for solving my problem ❤

  • @texmil62
    @texmil62 7 месяцев назад +3

    someone here knows how to debug c++ in visual studio ?

  • @jyotiprakashrout7488
    @jyotiprakashrout7488 3 года назад +5

    Please upload daily 🙏❤

  • @gouravgupta3474
    @gouravgupta3474 Год назад +1

    Thank you so much sir 💖

  • @savithuviran9872
    @savithuviran9872 3 дня назад

    Thank you sir❤

  • @Fezanedaroodosalam
    @Fezanedaroodosalam Год назад

    Sir your lectures are amazing

  • @LokkuChakreshkumar
    @LokkuChakreshkumar 4 месяца назад

    THANKS MATE FOR YOUR HELP

  • @StudyDriver
    @StudyDriver Год назад

    What is the difference of compiling from Command prompt and Visual studio?
    Please explain it!

  • @AgwunobiSomtochukwu
    @AgwunobiSomtochukwu 18 дней назад

    where’s the .vscode from? i followed all the steps but still didn’t know where you got that from

  • @imbatman3172
    @imbatman3172 5 месяцев назад

    You have my respect sir ❤❤❤❤

  • @zayyanaliahmed9525
    @zayyanaliahmed9525 Год назад

    Thanks a lot sir, it helped me a lot

  • @Tuhindey17
    @Tuhindey17 2 месяца назад

    Thank you ❤

  • @dr.octogon666
    @dr.octogon666 4 месяца назад

    why it shows ' Error: there is no registered task type 'cppbuild'. Did you miss installing an extension that provides a corresponding task provider? ' in output section and also why are there output section and problem section if everything can be manage in terminal ?

  • @alibaig2821
    @alibaig2821 7 дней назад

    what is the name of your compiler. I dont think i have the same one since I am a mac user

  • @AzurTheGreat
    @AzurTheGreat Год назад +1

    in terminal section it does not work

  • @pranshunayak1792
    @pranshunayak1792 3 года назад

    You solved a big problem sir !

  • @axeclips6567
    @axeclips6567 2 года назад

    Excellent content as always
    Love from Maharashtra 💖💖💖

  • @AshtonWright-y4l
    @AshtonWright-y4l Месяц назад

    I got an error saying that the task's command wasnt recognized as an internal or external command

  • @MdIrfan-kk9oo
    @MdIrfan-kk9oo 3 года назад

    We can use this in command prompt

  • @lornatwins9944
    @lornatwins9944 7 месяцев назад

    Okay so mine i just click run program and under output all the results come. What am i doing and how different is it from this

  • @physicsdepartment6579
    @physicsdepartment6579 Год назад

    I tried the same program to compile and execute, Method-2 works fine but incase of Method-1 it compiled successfully but does not create any .exe file. Error message shows file missing or not in executable form. How can I fix it?

  • @ihateandreykrasnokutsky
    @ihateandreykrasnokutsky Год назад

    Thanks! I'd been trying to compile a program, but skipped the "build" step. Tried to use commands like code and cmake in VSC terminal, edit launch.json file and thought about returning to Linux terminal and vim (or just compiling the text, made in VSC, using terminal and gcc). This Visual Studio products have a weird interface that I can't understand intuitivey.

  • @viktorols340
    @viktorols340 10 дней назад

    Why do all these tutorials show how to compile a single file? I want to know how to properly compile a large project consisting of header and cpp-files in different folders...

  • @RafalBujakowski
    @RafalBujakowski 5 дней назад

    3:14 where can I find the "dextop" folder?

  • @mathtec4146
    @mathtec4146 3 года назад +1

    You are the best ❤️❤️

  • @Sports_Insiders07
    @Sports_Insiders07 7 месяцев назад

    well explained...

  • @CarolynSchultz-h9k
    @CarolynSchultz-h9k Год назад

    Great lecture

  • @blahblahblahblahblah9920
    @blahblahblahblahblah9920 Год назад

    6:19 I am running via MSVC and got the error 'cl.exe' is not recognized as an internal or external command,
    operable program or batch file. Tried editing the system and user path variables with the cl.exe path and it still didn't work. No clue what to do.

  • @anjaligupta-ew6ns
    @anjaligupta-ew6ns 3 года назад +1

    Thanku sir😊

  • @divyaagarwal3091
    @divyaagarwal3091 3 года назад

    thankyou so much sir

  • @DeltaPrismo
    @DeltaPrismo 2 месяца назад

    i finally compiled the code, but i still see some annoying things like your file name can't have space, but all my files have more than one word and use space.

    • @DeltaPrismo
      @DeltaPrismo 2 месяца назад

      i don't think i have G++ on my computer.

  • @SatyamSingh-gq9sp
    @SatyamSingh-gq9sp 2 месяца назад

    (prelaunchtask c/c++ g++.exe build active file terminated with exit code), run and dubbug krne pe ye aa rha h .

  • @nagasamhithpatibandla4791
    @nagasamhithpatibandla4791 3 года назад +1

    Why python course not there in neso academy

  • @megapet777
    @megapet777 Год назад

    When I click "Run build task.." I don't have the options you have. And I get this message: "The terminal process failed to launch (exit code: -1).". Any tips what I should do?

    • @ihateandreykrasnokutsky
      @ihateandreykrasnokutsky Год назад

      May be install some extensions from Microsoft? I have C/C++, C/C++ extension pack, Cmake, Cmake tools.

  • @imaz8952
    @imaz8952 2 года назад

    anyone? my output and last line (i.e program path) getting executed in same line. that so irritatng for me. I want my output in new line and program path in new line . how can I do that?

  • @yashagrahari
    @yashagrahari 3 года назад

    Please upload daily

  • @atlantagadesigner7186
    @atlantagadesigner7186 3 года назад

    can you do c# tutorials to!!

  • @arenagaming9328
    @arenagaming9328 3 года назад

    thanks a lot

  • @adarshagc3532
    @adarshagc3532 2 месяца назад

    But executable file was not created

  • @chooyinkeat2063
    @chooyinkeat2063 8 месяцев назад

    Then how to add external library

  • @_Who_u_are
    @_Who_u_are 3 года назад

    THANKS, DEAR SIR.......PLZ UPLOAD C++ VIDEO AS HURRY AS POSSIBLE...😍😍🤗

  • @moh_jalamneh
    @moh_jalamneh 9 месяцев назад

    Thankss broo

  • @manalankm2882
    @manalankm2882 3 года назад

    So I ran ./test.exe in the vscode terminal. The file runs but prints nothing. What should I do?

    • @kyeremehprince9461
      @kyeremehprince9461 3 года назад +1

      I think it's .\test.exe rather.
      The slash is backward not forward.

  • @msg1956
    @msg1956 Год назад

    Superb..!

  • @learninginstudentscafe7284
    @learninginstudentscafe7284 3 года назад

    Good job

  • @mdimadullah6365
    @mdimadullah6365 3 года назад

    a lot thanks sir

  • @merlingt1
    @merlingt1 3 года назад

    Congratulations to the 200 firsts

  • @darakshannooreen4757
    @darakshannooreen4757 2 года назад

    It is showing no build task to run found. What should I do?

  • @hshbean1
    @hshbean1 Год назад

    codeblock is best for this

  • @emreozbek6770
    @emreozbek6770 Год назад

    How can I download g++?

  • @nabilff6415
    @nabilff6415 Год назад

    The exe file don't open😢

  • @mertcy6480
    @mertcy6480 3 года назад +1

    We are always beginner 😀

  • @siddhiupadhyay8814
    @siddhiupadhyay8814 Год назад

    Tnkuu so much

  • @jatinsrivastava6061
    @jatinsrivastava6061 3 года назад

    No run build task is shown
    method 2 is working..

    • @mihir1382
      @mihir1382 2 года назад

      Can u tell me how 2nd method is working perfectly because when I write .\a.exe and then enter then it shows error😔I tried lots of time but it doesn't work.

  • @redm00n748
    @redm00n748 5 месяцев назад

    thx :)

  • @Lita1
    @Lita1 Год назад

    Oh interesting video I liked this video yes!!!!👍😅

  • @afanoromolyricsofficial
    @afanoromolyricsofficial 2 года назад

    done!

  • @nicolezino7087
    @nicolezino7087 15 дней назад

    cl.exe doesnt exist for me

  • @waelltifi-2023
    @waelltifi-2023 11 месяцев назад

    it isn't going like this for me , i don't have this senario !!!!!!!!!!!

  • @bluemoons3673
    @bluemoons3673 2 года назад

    My a.exe file is not creating

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 года назад

    I love it❤️

  • @shenghanzheng3043
    @shenghanzheng3043 Год назад

    my man

  • @rajthumar8994
    @rajthumar8994 3 года назад +1

    🔥🔥

  • @ishikapal922
    @ishikapal922 3 года назад +1

    •●◉✿◦•●◉✿love this channel✿◉●•◦✿◉●•◦

  • @Arnold-w1t
    @Arnold-w1t 19 дней назад

    Very confusing

  • @kumaranshul9354
    @kumaranshul9354 3 года назад +3

    🥇 first

  • @gkawareness
    @gkawareness 3 года назад +3

    I am first✌️

  • @shuvashishdatta5807
    @shuvashishdatta5807 3 года назад +1

    First like