Questions icon indicating copy to clipboard operation
Questions copied to clipboard

new to c++ , wrote program for the first time on vs code and downloaded mingw , showing error , pls help me proceed further

Open Ninjabeam20 opened this issue 1 year ago • 0 comments

This is the program i typed #include using namespace std; int main(){ cout<< "Hello World" <<endl ; return 0; }

ran it and i am getting this in the terminal window :-

PS C:\Users\Windows11pro\Desktop\CODING\C++> c

                                       > cd "c:\Users\Windows11pro\Desktop\CODING\C++\" ; if ($?) { g++ firstprogram.cpp -o firstprogram } ; if ($?) { .\firstprogram }

Program 'firstprogram.exe' failed to run: Unknown error (0xfffffffe)At line:1 char:111

  • ... { g++ firstprogram.cpp -o firstprogram } ; if ($?) { .\firstprogram }
  •                                                      ~~~~~~~~~~~~~~.
    

At line:1 char:111

  • ... { g++ firstprogram.cpp -o firstprogram } ; if ($?) { .\firstprogram }

  •                                                      ~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
    • FullyQualifiedErrorId : NativeCommandFailed

    i followed the tutorial on these 2 vids for installation , 1 :- https://www.youtube.com/watch?v=j8nAHeVKL08&list=PLu0W_9lII9agpFUAlPFe_VNSlXW5uE0YL&index=1&t=1158s 2:- https://www.youtube.com/watch?v=VvYhfj2g4Zo&list=PLxgZQoSe9cg0df_GxVjz3DD_Gck5tMXAd&index=2&t=249s my device is windows 11 laptop , was wondering if anyone could help me out with this Thanks

Ninjabeam20 avatar May 28 '24 11:05 Ninjabeam20